13 Mar
2002
13 Mar
'02
21:08
Can't you just use the -i switch for the interface?
Hi!
I've got a problem with ipchains. I have T-DSL, so I'm assigned a different ip-address each time I connect to my provider. However, to block ports via ipchains I need to enter my dynamic IP as source/destination, so for dynamic IPs I got to have a dynamic script, [don't] I ?!? I thought about picking my ip from ifconfig by a command similar to that:
ifconfig | grep P-t-P | awk '{print $2}'
you can always do something like variable = `ifconfig|grep ... ` and use the variable in your script. cheers, michael