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: |
OUTIP= `/sbin/ifconfig ppp0 |awk '/inet addr/{split($2,x,":"); print x[2]}'`
this should do it |
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: |
Anyone going to help a newbie??:confused:
|
Honestly, this looks like it belongs in the networking forum....
|
All times are GMT -5. The time now is 10:33 PM. |