Bluehost.com Web Hosting $6.95

ip-up.d and portforwarding

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 ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-05-2003
Michael Gäde
 
Posts: n/a
Default ip-up.d and portforwarding

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


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:19 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0