Hi,
I've read all the ipmasq docos I can find, and played with ipchains a great deal, yet have had no luck. I would like to do two things, and was hoping someone would be able to give me the ipchains options I would need to make it work (if it's possible).
I run a private LAN with IP addresses 10.20.0.x subnet 255.255.255.0 My Redhat Linux machine (V7.1) has a permenant modem connection to the net with ip 139.x.x.x and an internal IP address of 10.20.0.1 I run an SMTP/POP server at 10.20.0.2
The linux machine is currently set as the default router on the LAN, and masquerades requests from machines on the LAN to enable net use via the dialup link. I would like to be able to:
* Port forward any incoming connections (via the modem) on port 25 & 110 to 10.20.0.2 so mail works from the net
* I have several Internet IP addresses from my ISP. If possible, I would like to be able to assign these IP's to internal hosts, with the linux machine routing between the net & these internal hosts. This would allow me to assign a separate IP to the mail host that is visible from the net, and wouldn't require port forwarding.
Any help would be appreciated
------------------- ----------------------
| Linux |-----------------------------| Mail Server |
| 10.20.0.1 | Ethernet LAN | 10.20.0.2 |
------------------- ---------------------
|
| Modem link -
| 139.x.x.x
|
|
---------------
| The Net |
---------------
Thanks
