Networking Forums

Networking Forums > Computer Networking > Linux Networking > ip-up.d portforwarding

Reply
Thread Tools Display Modes

ip-up.d portforwarding

 
 
Michael Gäde
Guest
Posts: n/a

 
      11-05-2003, 09:30 AM
Hi NG,

Ich versuche ein kleines Script zu schreiben, das mir ein automatisches Port
forwarding
macht.
manuelles ausführen funktioniert.
Ein " echo test >/etc/ppp/test" in dem script läuft auch automatisch durch.
warum aber nicht mein Ip Forward befehl.
vnc hab ich in /etc/services eingetragen.




#!/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

thanks
mick


 
Reply With Quote
 
 
 
Reply

Thread Tools
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
portforwarding just hangs Avi Linux Networking 1 04-02-2005 07:30 PM
Portforwarding Eddy Linux Networking 2 11-26-2004 07:20 PM
portforwarding for ftp sever behind NAT tony barnwell Linux Networking 1 09-06-2004 10:06 AM
PortForwarding/DMZ Bill Broadband Hardware 2 02-23-2004 10:12 AM
ip-up.d and portforwarding Michael Gäde Linux Networking 0 11-05-2003 12:22 PM



1 2 3 4 5 6 7 8 9 10 11