On 1/23/07, Shane Hathaway <[EMAIL PROTECTED]> wrote:
I think you need a DNAT rule to get what you want, and now I realize
that the command I gave you won't list NAT rules. Try this:
iptables -t nat -n -L
# iptables -t nat -n -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
prerouting_rule all -- 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
postrouting_rule all -- 0.0.0.0/0 0.0.0.0/0
MASQUERADE all -- 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain postrouting_rule (1 references)
target prot opt source destination
Chain prerouting_rule (1 references)
target prot opt source destination
prerouting_vlan1 all -- 0.0.0.0/0 0.0.0.0/0
Chain prerouting_vlan1 (1 references)
target prot opt source destination
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 multiport
dports 22,80 to:192.168.1.3
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/