chinese_simplified english italian
Home arrow VPN-X Tech Info arrow Advanced Configuration arrow Configuring VPN-X server as NAT server on Mac OS X Tiger/Leopard

Configuring VPN-X server as NAT server on Mac OS X Tiger/Leopard

Monday, 28 February 2011

VPN-X provides a friendly GUI for Mac OS X and FreeBSD users to make a NAT server more easily. If you encounter any problem, please contact us.


VPN-X on Mac OS X Tiger screenshot

Open VPN-X "route configuration" panel and do the following configuration.

  • Act as gateway: checked
  • Act as NAT server: checked
  • NAT interface: en0

Notes: Since VPN-X,VPN-X can help you get the default NAT interface automatically. You need not run the command to check.
The NAT interface should be your LAN interface name on your Mac OS X (Tiger/Leopard). You can use the command "ifconfig" to check.


For example: In our Test Mac OS X, we get the following information

apple-computer:~ root# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet netmask 0xff000000
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
inet netmask 0xffffff00 broadcast
ether 00:0c:29:18:9d:70
media: 10baseT/UTP <full-duplex> status: active
supported media: 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex>
inet netmask 0xffffff00 broadcast
ether d2:63:3a:d9:22:4f
open (pid 217)

NAT interface name is very important,or your VPN-X server will not work properly.

Add a route rule on “Client Route Table” for your VPN clients.

  • network:
  • netmask:
  • gateway:
  • metric: 5

if you want to access internet with server side IP, you should add route rule like this:

  • network:
  • netmask:
  • gateway:
  • metric: 1

Don't forget to click "Apply". After change route setting, you’d better tell your clients to restart VPN-X client to make sure the new route rule is working.

Last Updated Friday, 11 March 2011
All rights reserved.
Copyright (C) 2006-2015 BirdsSoft - Web by Amigamerlin