This is a discussion on ip-up.d and portforwarding within the Linux Networking forums, part of the Linux Forums category; Hi NG, i´ve tried to write a script for automatic port forwarding. manuall excecution is working fine, automatic excecution ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi NG,
i´ve tried to write a script for automatic port forwarding. manuall excecution is working fine, automatic excecution not what could be problem. i put the script in the /etc/ppp/ip-up.d directory. a line like "echo >>test /etc/ppp" works, the other one not. #!/bin/bash extip=`/sbin/ifconfig ppp0 |awk '/inet /{print $2}'|sed -e s/addr://` echo $extip ipmasqadm portfw -f ipmasqadm portfw -a -P tcp -L $extip vnc -R 192.168.0.43 vnc there is an vnc entry in /etc/services thanks mick |