1. I don't really know what you're asking, but I'll try to help.
2. If this is a line in a bash script you have commented this line out
making it effectively useless.  Remove the # at the beginning of the line.
3. It's POSTROUTING not POSTOUTING
4. Make sure you're running iptables --flush and iptables --flush -t nat to
clear your ruleset.  It'll make life a lot easier for you when you're
testing stuff out.

Here is an example line of my rc.firewall:

iptables -t nat -I POSTROUTING -s 192.168.0.0/24 -d ! 192.168.0.0/24 -j
SNAT --to $IP

$IP is defined by:

IP=`ifconfig eth0 | grep inet | cut -d \: -f 2 | cut -d \  -f 1`

Mike Fetherston

----- Original Message -----
From: "painter(eastnet)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 10:45 PM
Subject: iptables, nat


> Hello all,
>
> i do
> #iptables -t nat -A POSTOUTING -s $localhosts  --out-interface
> $outif -j SNAT --to-source $real_ip
> but my "nat" connection not stability, i know that problem in Firwall.
> WHAT A PROBLEM ? WHY MY "NAT" CONNECTION NOT STABILITY ?  timeout ?
>
> sorry for my english
>
>
> --
> Best regards,
>  painter(eastnet)                          mailto:[EMAIL PROTECTED]
>
>
> _______________________________________________
> Firewalls mailing list
> [EMAIL PROTECTED]
> http://lists.gnac.net/mailman/listinfo/firewalls
>
_______________________________________________
Firewalls mailing list
[EMAIL PROTECTED]
http://lists.gnac.net/mailman/listinfo/firewalls

Reply via email to