Replies: 2 comments 2 replies
-
Do you need to configure a different IP range on the LAN interface? Or should It be same network segment? |
Beta Was this translation helpful? Give feedback.
2 replies
-
These should do: iptables -t nat -A POSTROUTING -s 192.168.42.0/24 -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT
ip6tables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
ip6tables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT
ip6tables -A FORWARD -i eth1 -o eth0 -j ACCEPT This expects the WAN port to be |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My NanoPi R1 board has 2 ethernet ports, and i'd like to allow the PC connected to the LAN port to have internet access (the WAN port is connected to my ISP router)
With Operwrt i've created these firewall zones to allow this, i am not sure how to do the same in Dietpi:
my current iptables rules:
Beta Was this translation helpful? Give feedback.
All reactions