Koozali.org: home of the SME Server

pptp-client changes external static ip

Offline commanda

  • **
  • 30
  • +0/-0
    • http://swafl.org (not smeserver)
pptp-client changes external static ip
« on: August 23, 2004, 02:40:31 AM »
I have several boxes running SME 6.0, with pptp-linux-1.4.0-1.i386.rpm installed. They have 2 ethernet cards, one attached to the local lan; the other has a public IP number & connects to the internet via an adsl modem.

pptp-client establishes a vpn connection into the head-office network through a Windows 2000 server. It successfully runs mysql replication & rsync over this tunnel.

My problen is that establishing the vpn tunnel changes the external static ip number. This is not generally a problem, except that I can't now ssh or vpn into the external ip number. The number that is assigned is an internal private ip number assigned by the windows 2000 server.

Any help really appreciated.

Amanda
...

Offline briank

  • ****
  • 146
  • +0/-0
pptp-client changes external static ip
« Reply #1 on: August 24, 2004, 12:14:03 AM »
Hi Amanda - I am a bit confused. If you have a PPTP tunnel from your SME to the W2K server you have made a secure connection between the two networks and therefore you are effectively on the internal side of head office n/w and use the internal ip addresses. You don't need to ssh or vpn to the external ip if the tunnel is up as pptp client joins the two networks securely and allows you on the internal lan.
I am please someone has pptp-client working on SME 6 as I haven't had a chance to try it.
Can you tell me the exact SME version you have it running on please.
Regards
Brian

Offline commanda

  • **
  • 30
  • +0/-0
    • http://swafl.org (not smeserver)
pptp-client changes external static ip
« Reply #2 on: August 24, 2004, 12:27:34 AM »
I have found the solution.
Edit the file
/etc/sysconfig/network-scripts/ifcfg-eth0
change BOOTPROTO=none
to BOOTPROTO=static

The W2K server has multiple vpn connections, so the assigned ip number for the remote offices changes from time to time.
We also require vpn access into the remote server for those people working out of that office, whilst either out in the field, or at home.

Amanda
PS: the SME version is 6.0 Final
...

Offline commanda

  • **
  • 30
  • +0/-0
    • http://swafl.org (not smeserver)
pptp-client changes external static ip
« Reply #3 on: August 24, 2004, 04:03:33 AM »
Well, I'm still no better off.

ifconfig eth1 shows the external ip......correct.

Server-manager, review configuration shows the external ip as the internal vpn ip.

Maybe I need 3 network cards. One Lan, one Wan, a second Wan running the vpn tunnel. The 2 wan cards would connect to a hub between it & the adsl modem.

Amanda
...