Results 1 to 3 of 3

Thread: Routing traffic from workstation through vpn server

  1. #1
    Join Date
    Dec 2008

    Routing traffic from workstation through vpn server


    I am trying to figure out which is the best way to solve this problem.

    One person is working on a laptop, which is connected to the internet through his private ISP connection. But the ISP is refusing to let SMTP traffic og any kind through. This way the only possibility to connect to email at work would be webmail.

    My thought: Is it possible to redirect traffic or entire connection though an existing OpenVPN connection?


  2. #2
    Join Date
    Nov 2008
    Metro Boston
    Kubuntu 14.04 Trusty Tahr

    Re: Routing traffic from workstation through vpn server

    What is the laptop running? Linux? Windows? OS/X? If it's Linux, you can try this approach.

    I tunnel all the traffic between a workstation and my Linux external router to add an additional layer of security to the wifi connection it uses and to facilitate a couple of services that need to see the workstation directly.

    It's a bit tricky to set up because you have to make sure you have a route to the VPN server so you can pass the traffic between them, but use the tunnel for everything else.

    For reference, I'll post the script I use. I run this after I've set up the connection to my wifi router at

    # check to see if I have connected to the router
    TEST=`ifconfig | grep 'inet addr:192.168.1'`
    if [ "$TEST" != "" ]
        # add a route to the VPN router at using the wifi connection
        ip route add via
        # restart VPN to connect to the router and create the tunnel
        /etc/init.d/openvpn restart
        # repoint my default route to use the remote tunnel IP (
        ip route del default
        ip route add default via
    exit 0
    When finished, my routing table looks like this:

    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface UGH   0      0        0 wlan0 UH    0      0        0 tun0   U     2      0        0 wlan0         UG    0      0        0 tun0

  3. #3
    Join Date
    Nov 2008
    Sheffield, UK

    Re: Routing traffic from workstation through vpn server

    it is yer, but it may be easier to use the submission port 587..

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts