LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: John Edwards <isplist@adam.com.au>
  To  : Michael T. Cheshire <michael.cheshire@microarts.com.au>
  Date: Thu, 29 Nov 2001 10:56:34 +1030

Re: iptables NAT

"Michael T. Cheshire" wrote:

> iptables -t nat -A POSTROUTING -s 192.168.0.5 -o eth1 -j MASQUERADE
> 
> to allow 192.168.0.5 to get internet (NAT) access via your linux box.
> 
> what would I use as a command to turn NAT *off* again specifically for
> that address?

The quick fix is probably to do iptables -t nat -f to flush the ruleset
and reload your default one.

Depending on your distribution you might have an init.d script that does
this with reload/restart.

John Edwards

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page