[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

Slirp-like port redirection under PPP?

Before getting PPP to work, I used slirp.  Using the "telnet 10.0.2.0" and "redir remote_port to_local_port" I was able to allow people to telnet, ftp, and bring up local webpages on my machine.  Now that I can use PPP, I would like to do the same thing by redirecting ports.

Why not just use the IP address given me?  Why not use
http://IP-ADDRESS ?  Because it changes at each login.  I would like a "static" address (i.e. remote_host:port#), otherwise no one but me would know what the "new" address is each time.  I have my machine homepage setup such that if anyone loads that page, http://www.isp-host:PORT-NUMBER/, they will obviously know I'm on and be able to hit a hyperlink to telnet in (for remote friends who don't have talk/ytalk:). This is the only reason I still prefer slirp to PPP.

I am running Debian 1.3.1 and Linux kernel 2.0.30 .  I have tried the "redir" command, but either that's not what the program is for or I'm using it incorrectly.

Thanks!
0
dbwong
Asked:
dbwong
  • 2
1 Solution
 
dirgeCommented:
Now that you have PPP and a non-static IP address, I think there is a better solution: go to http://www.ml.org/ and apply for a free DYNDNS (dynamic dns) account. This account will give you a URL like http://dbwong.dyn.ml.org/ (and I believe, *.dbwong.dyn.ml.org as well, e.g. ftp.dbwong..., www.dbwong... etc)

This is how it works: You need to run a DYNDNS client (see http://www.ml.org/dyndns/) -- also free -- each time you make a successful PPP connection. There is a script (/etc/ppp/ip-up, at least in Slackware) that you can modify to run this client automatically.

(I personally use the MLDDC client. If you have problems setting this up, leave a comment for me here.)

This client sends the necessary information to ml.org, which then updates its DNS to reflect your new IP address. Updates to the DNS are made every 10 minutes, after which your Linux system is accessible to everyone via your fixed subdomain name.

Great, eh? Have fun like I did!

Regards,
dirge

0
 
dirgeCommented:
Me again. To get www.dbwong.dyn.ml.org, ftp.dbwong.dyn.ml.org, etc. make sure to check Wildcard Alias when you create the account. These aliases will resolve to your current IP address.

Enjoy!
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now