Destination Nat
the rule set:
iptables -t nat -A PREROUTING -d 5.6.7.8 -p 6 --dport 80 -j DNAT --to 192.168.x.x:80 worked perfectly
thank you
but i have a new question. i'm trying to setup so the users can access the machines through ssh.
here is the rule set:
iptables -t nat -A PREROUTING -d 5.6.7.8 -p tcp --dport 22 -j DNAT --to 192.168.1.88:22
the problem is when i ssh in to machine8 which is on static ipaddress 192.168.1.88 i actully log into machine1 which is 192.168.1.81, which is the first machine in the rule set. where did i go wrong?
thanks
john
Quoted 13 lines · On Fri, 2004-06-04 at 11:45, [email protected] wrote:
the rule set:
iptables -t nat -A PREROUTING -d 5.6.7.8 -p 6 --dport 80 -j DNAT --to 192.168.x.x:80 worked perfectlythank you
but i have a new question. i'm trying to setup so the users can access the machines through ssh.
here is the rule set:
iptables -t nat -A PREROUTING -d 5.6.7.8 -p tcp --dport 22 -j DNAT --to 192.168.1.88:22
Quoted 7 lines
the problem is when i ssh in to machine8 which is on static ipaddress 192.168.1.88 i actully log into machine1 which is 192.168.1.81, which is the first machine in the rule set. where did i go wrong?
thanks
john
What are the other rules?
Signature · 9 lines
John A. Sullivan III Chief Technology Officer Nexus Management +1 207-985-7880 [email protected] --- If you are interested in helping to develop a GPL enterprise class VPN/Firewall/Security device management console, please visit http://iscs.sourceforge.net