how to use iptables with gargoyle firmware?
Posted: Mon Jun 05, 2017 6:46 am
Hi all!
I have a tp-link wr1043nd running the latest version of gargoyle.
It's setup as a router (wired) with openvpn client running.
I need to setup a few iptables like those:
How and where can I do this?
I have a tp-link wr1043nd running the latest version of gargoyle.
It's setup as a router (wired) with openvpn client running.
I need to setup a few iptables like those:
Code: Select all
iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE
iptables -t nat -A PREROUTING -p tcp --dport 13000 -j DNAT --to-destination 192.168.1.5:13000
iptables -I INPUT 3 -i tun0 -p icmp -j ACCEPT