Subject: Re: your mail
To: davemc99 <davemc99@bellsouth.net>
From: John Klos <john@sixgirls.org>
List: port-mac68k
Date: 01/22/2003 01:16:48
Hi,
> Did anyone resolved this issue??
There really isn't any "issue"; it works fine. I guess you're looking for
an example of how.
> Okay, I'm stumped. I have PPP NAT working well so my internal clients can
> connect to external servers. But how do I configure to map specific ports to
> internal servers?
>
> eg I want to allow incoming SMTP (port 25) connections from the outside
> through my public PPP IP address of 203.57.42.254 to an internal SMTP server
> running at 192.168.1.218. Similarly, I want web requests from the outside to
> go to 192.168.1.220.
Say your interface is called ppp0. Just add lines to /etc/ipnat.conf like
so:
rdr ppp0 203.57.42.254 port 25 -> 192.168.1.218 port 25
rdr ppp0 203.57.42.254 port 80 -> 192.168.1.220 port 80
I think that from these examples you can figure out the rest.
John Klos
Sixgirls Computing Labs