Re: iptables forwarding not working/iptables-save not saving

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 20, 2008 at 12:26:26PM -0800, Antonio Olivares wrote:
> Sorry for double post :(  Yahoo mail was misbehaving :(  
> Here's some info to clarify things 
> 
> [root@localhost ~]# service iptables stop

> [root@localhost ~]# iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT [1]+  Done                    gedit /etc/sysconfig/iptables       
> [root@localhost ~]# iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT                                                         
> [root@localhost ~]# iptables -A POSTROUTING -t nat -s 192.168.1.0/24 -o eth0 -j SNAT --to-source 10.154.19.210                                         
> [root@localhost ~]# iptables-save
> # Generated by iptables-save v1.4.1.1 on Thu Nov 20 13:14:50 2008

The output of "iptables-save" goes to your terminal, it isn't 
stored anywhere.

> The iptables get back to original state.  error in iptables-save ?/bug

Nope, you need to do this instead:

service iptables save

-- 
fedora-test-list mailing list
fedora-test-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-test-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux