hi to all
well, i have some limited ipv6 setup with only 1 (one) ipv6 upstream address available, no PD and i like to setup port forward back to LAN
so, nat66 from LAN to WAN6 working as expected
firewall.@zone[8]=zone
firewall.@zone[8].name='wan6'
firewall.@zone[8].input='ACCEPT'
firewall.@zone[8].output='ACCEPT'
firewall.@zone[8].forward='REJECT'
firewall.@zone[8].network='wan6'
firewall.@zone[8].masq6='1'
but i am confused with fw4, how to set up port fw & dnat to internal LAN?
my public ipv6 is xxxx::2/64
my upstream gw is xxxx:1/64
LAN is fd00:250:202::/64
host is fd00:250:202::1fff
i like to forward for ex tcp8000 from pub ipv6 to lan ipv6 tcp8000
there is no ip6tables so i am grounded
any help ?
p.s. OpenWrt 22.03.2
ahaaaa
looks like it is working, but not from Luci
so, in /etc/config/firewall
config redirect
option dest 'vlan202'
option target 'DNAT'
option name 'exampleserver22v6'
list proto 'tcp'
option src 'wan6'
option src_dport '22'
option dest_ip 'fd00:250:202::1fff'
option dest_port '22'
work as expected, despite that Luci show "Incoming IPv4 protocol TCP"
so it need to be edited by hand
3 Likes
efahl
March 26, 2023, 6:46pm
3
Just an FYI... There was a recent patch to LuCI and firewall to allow selection of IP family for both port forward and NAT rules (if I remember right). It's already available in SNAPSHOT, and will be in 23.X whenever it's released.
Here's the dropdown on the port forwards page:
1 Like
thank you @efahl for info
your screenshot look very good
i will wait for official 23.x release
system
Closed
April 5, 2023, 8:26pm
5
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.