Port Forwarding on Freifunk Firmware
iptables -t nat -I PREROUTING -p tcp –dport 3000 -j DNAT –to 192.168.1.3:30
iptables -I FORWARD -p tcp -d 192.168.1.3 –dport 30 -j ACCEPT
I don’t know if order of operations is important with iptables, but this went after the line:
iptables -A OUTPUT -o $WNDEV -j ACCEPT
in /etc/init.d/S45firewall
fff-rider said,
October 10, 2005 @ 8:55 pm
I’m using an ADSL-connection and get disconnected every 24h.
Because of this i decided to put this rules in the /etc/ppp/ip-up like this:
iptables -t nat -I PREROUTING -i $1 -p tcp –sport 1024:65535 -d $4 –dport 6881:6890 -j DNAT –to-destination 192.168.0.2
iptables -I FORWARD -p TCP -i $1 -o vlan0 -d 192.168.0.2 –dport 6881:6890 -j ACCEPT
but when i get disconnected it doesn’t work anymore, i don’t know what to write in my /etc/ppp/ip-down to solve this problem
glahue said,
April 25, 2006 @ 5:51 pm
Take a Look at https://wiki.funkfeuer.at//index.php?title=Port-Forwarding_unter_FreiFunk !