Make WAN address always respond as such (iptables rules?)

Andrew Jorgensen andrew.jorgensen at gmail.com
Tue Jan 23 14:21:23 MST 2007


On 1/23/07, Shane Hathaway <shane at hathawaymix.org> 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



More information about the PLUG mailing list