LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Execute a Script Like Iptables (https://www.linuxquestions.org/questions/linux-newbie-8/execute-a-script-like-iptables-444571/)

shipon_97 05-14-2006 12:40 AM

Execute a Script Like Iptables
 
Friends,

I can make NAT using the following address :
"iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE"..Normally i write it into the Linux Command shell .
But here i want to make a Script using "vi" in (suppose) "etc/note" where the "note" contains the above rule .when i need to make a rule then i make update into this "note" file.

Now my question is , How i make this Script and make it executable like IPTABLES .Plz give me some clue....

Thx.......

Linux~Powered 05-14-2006 01:41 AM

Yes you can. What distribution are you using?


All times are GMT -5. The time now is 04:29 AM.