Hi, how can I use a selfdefined iptables ruleset with ippp0. The firewallsetting must be able react by changing the ipaddress of my isdn-card after connecting with my isp and the receipt of the new ipaddress Regards, Ruprecht
Check out /etc/ppp/ip-up.local and ip-down.local Those scripts get called when a connection has been established or you got disconnected - I put my iptables rules and ipsec stuff there so it gets automatically restarted every time I have to reconnect. All you need is a small line to extract your new ip address from ifconfig. extint="ippp0" extip="`/sbin/ifconfig $extint | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`" Does this job for me. Maybe you need to change the grep to 'inet Adresse' if you have your environment set to german language. Regards, Thomas Ruprecht Helms wrote:
Hi,
how can I use a selfdefined iptables ruleset with ippp0. The firewallsetting must be able react by changing the ipaddress of my isdn-card after connecting with my isp and the receipt of the new ipaddress
Regards, Ruprecht
On Mon, May 26, 2003 at 02:23:44PM +0200, Joebstl Thomas wrote:
Check out /etc/ppp/ip-up.local and ip-down.local
and check out /etc/ppp/ip-up. The arguments are described in this script and passed to ip-up.local: <INTERFACE> <DEVICE> <SPEED> <LOCALIP> <REMOTEIP>
how can I use a selfdefined iptables ruleset with ippp0. The firewallsetting must be able react by changing the ipaddress of my isdn-card after connecting with my isp and the receipt of the new ipaddress
It may be sufficient to specify the interface when creating iptables rules. -- Stefan Tichy <listuser@pi4tel.de>
participants (3)
-
Joebstl Thomas
-
Ruprecht Helms
-
Stefan Andreas Tichy