[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: portforwarding - lokkit



Tommy McNeely schrieb:

just edit /etc/sysconfig/iptables.. and add something like the following
to your NAT section :) (the part between the *nat and the COMMIT) .

(note: all lines should start with [0:0] incase email wraps them)


*nat :PREROUTING ACCEPT [0:0] :POSTROUTING ACCEPT [0:0] :OUTPUT ACCEPT [0:0] ## FORWARD SSH TO BACKEND [0:0] -A PREROUTING -i eth1 -p tcp -m tcp --dport 2222 -j DNAT --to-destination 192.168.10.2:22 ## MASQ RULES [0:0] -A POSTROUTING -s 192.168.10.0/255.255.0.0 -o eth1 -j MASQUERADE [0:0] -A POSTROUTING -s 192.168.10.0/255.255.0.0 -o ppp0 -j MASQUERADE COMMIT # Completed on Mon Sep 3 20:56:14 2001 # Generated by iptables-save v1.2.2 on Mon Sep 3 20:56:14 2001


thanks,
works great.

one day with howtos, google, ... and the solution is so easy ;-)


-- shrek-m





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]