LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   iptables help (https://www.linuxquestions.org/questions/linux-newbie-8/iptables-help-62937/)

Neomaster 05-31-2003 07:55 PM

iptables help
 
I going to write my own firewall script with iptables.The prob is this.



OUTDEV=ppp0
OUTIP=$( ip addr show $OUTDEV | awk '/inet/{print $2}' )




I am not sure if i should put this when i start my iptables script?I am use dial-up and i want to get a differnt ip number everytime i dial-up.Can anyone help me.:confused: :study: :newbie: :Pengy:

manthram 05-31-2003 08:00 PM

OUTIP= `/sbin/ifconfig ppp0 |awk '/inet addr/{split($2,x,":"); print x[2]}'`


this should do it

Neomaster 05-31-2003 08:11 PM

I part where i lost is.How should i start out my script by useing thar?I been look at other script but i lost.



:confused:

Neomaster 05-31-2003 11:17 PM

Anyone going to help a newbie??:confused:

Bigun 06-01-2003 12:21 PM

Honestly, this looks like it belongs in the networking forum....


All times are GMT -5. The time now is 10:33 PM.