Skip to contentSkip to conversation

Exposing Internal Host on Private network to Internet

DISCUSSION Bobby Hitt 2 participants 2 messages Jun 23, 2003

lore
Share & tools
lore

Bobby Hitt

author
#0 lore raw

Hello all,

I have a network using Linux as a gateway/firewall running NAT. This works perfectly to allow 5 internal hosts running Windows 2000/XP/Win98/Linux access to the Internet. Also the Linux gateway is running openVPN which allows me a secure connection to my Linux server in Connecticut for my Windows machines.

I have setup a Windows 2000 Server on my network here running VPN server that I want to be exposed to the the outside to allow Windows clients running the VPN client to access the inside network here via the Windows 2000 server. I know I need to route ports 1723 47 for PPTP and 500 and 50-51 for IPSec to the Windows 2000 Server, but have no idea how to do this with iptables.

I used to run a cable router that allowed one host to be exposed to the Internet, which is how I want to setup the Linux router.

Any help is appreciated,

Bobby

#1 lore raw

A: SNAT/DNAT

Start here: http://www.netfilter.org/documentation/HOWTO//NAT-HOWTO-6.html
and read through section 10 then search archives for examples

/B
----- Original Message -----
From: "Bobby Hitt" <[email protected]>
To: <[email protected]>
Sent: Sunday, June 22, 2003 21:36
Subject: Exposing Internal Host on Private network to Internet

Quoted 8 lines

Hello all,

I have a network using Linux as a gateway/firewall running NAT. This works perfectly to allow 5 internal hosts running Windows 2000/XP/Win98/Linux access to the Internet. Also the Linux gateway is running openVPN which allows me a secure connection to my Linux server in Connecticut for my Windows machines.

Quoted 4 lines

I have setup a Windows 2000 Server on my network here running VPN server that I want to be exposed to the the outside to allow Windows clients running the VPN client to access the inside network here via the Windows 2000 server. I know I need to route ports 1723 47 for PPTP and 500 and

50-51

Quoted 10 lines

for IPSec to the Windows 2000 Server, but have no idea how to do this with iptables.

I used to run a cable router that allowed one host to be exposed to the Internet, which is how I want to setup the Linux router.

Any help is appreciated,

Bobby