Can you please tell me the command to add those rules?
Can you please tell me the command to add those rules?
One way is like this:
You can substitute your favorite editor for nano. Also, you can edit .nanorc to have 'set nowrap' so that you don't have to put -w all the time.Code:sudo iptables-save > /home/thpubs/iptables.rules nano -w /home/thpubs/iptables.rules sudo iptables-restore < /home/thpubs/iptables.rules
Last edited by Lars Noodén; November 14th, 2012 at 12:34 PM.
Thanks a lot Lars Noodén and also Grenage for your help! Lars's trick work Thanks a lot!
Bookmarks