Yip Wai Peng wrote:
On Friday 07 September 2007 8:23:32 am you wrote:
Yip Wai Peng wrote:
On Thursday 06 September 2007 9:38:11 pm Junhao wrote:
2) However, iptables doesn't list any rules:

<output>
root$ iptables --list
Hiya,

Try

# iptables -t nat -L

Cheers!
Wai Peng
Thanks, Wai Peng and Vernon! Found the active iptables rules now (using
iptables -t nat -L), it's the same as the one from S08iptables.

Still can't find any iptables configuration file though. Only manpages
and iptables binaries returned using "find / -iname *iptable* -ls". I
guess somehow the configuration file is deleted after it was setup...

Saved a copy of the present iptable rules using
"iptables-save > iptables.conf"
, to restore using
"cat iptables.conf | iptables-restore"
  if the system gets rebooted.

Am I on the right track? Thanks!

--
Junhao

Hi Junhao,

You are using Redhat right? See whether you have /etc/sysconfig/iptables, this is the file saved by /etc/init.d/iptables.

Regards,
Wai Peng


Yeap, this machine is running Redhat 9. Okay, I have saved the config into /etc/sysconfig/iptables. Hopefully there are no more ticking time bombs...

Thanks everybody!! =)

--
Junhao

_______________________________________________
Slugnet mailing list
[email protected]
http://www.lugs.org.sg/mailman/listinfo/slugnet

Reply via email to