Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Single NIC pfsense server behind NAT

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    7 Posts 5 Posters 2.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      rogierl
      last edited by

      I have the current situation: I'm running a Ubuntu 14 server at home with two NICs. One is connected to my modem and the other one is connected to my switch. The server acts as a router and is the gateway between my ISP and the other local connected clients. I have set-up some iptables rules which do the routing/forwarding/etc. I also have installed KVM on the server.

      Now what I want:
      When I'm abroad, I want to be able to set-up a vpn tunnel with my server at home. I thought its a great idea to use pfSense for this, right? Now what I have figured out:

      • I will install pfSense on a dedicated virtual machine on the server. It will have one NIC (bridged with the sever) and a static ip address: 192.168.1.5

      • On this VM, I will install pfSense and configure it with only one purpose: being a L2TP vpn server, so clients (iPhone, Macbook) could browse the internet safe

      So now I'm looking for some instructions how to:

      • install pfSense on a virtual KVM machine with only one NIC (what os type to choose?)
      • enable just the L2TP feature
      • find out what ports I have to forward from the host to the pfSense box

      Anyone some experience with this?

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        No idea why you wouldn't just replace the roll-your-own ubuntu "firewall" with pfSense.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

        1 Reply Last reply Reply Quote 0
        • R
          rogierl
          last edited by

          Well, I prefer having Ubuntu as host, since I'm also compiling stuff on this. Please notice that it's just my home server, no business things here. So my question remains: is it possible to have a dedicated VPN server running in pfSense on 192.168.1.5 as bridge? Any directions?

          1 Reply Last reply Reply Quote 0
          • R
            robi
            last edited by

            No reason to use pfSense for this. I would just install simply an OpenVPN server on your Ubuntu machine, that's all.

            1 Reply Last reply Reply Quote 0
            • R
              rogierl
              last edited by

              Thanks for your reply, however I would like to use the native VPN client from iOS. Unfortunately openvpn is natively not supported.

              1 Reply Last reply Reply Quote 0
              • D
                divsys
                last edited by

                While the native VPN might be nice, "there's an app for that"

                OpenVPN Connect, Tunnelblick, and Viscosity all work well with iOS devices to get you OpenVPN connectivity, they're fairly  plug and play.

                I (and many others) use them on a regular basis to do exactly what you're proposing.

                -jfp

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by

                  ^ exactly your making it way too complicated..  It would take about 30 seconds to install the openvpn-as ubuntu package.. And prob less to install the app on your ios device.  Clickity Clickity your openvpn server is up and running..  Grab the openvpn connect client that works great on both ios and android devices and is FREE as in beer..

                  Your making it way way over complicated because you don't want to use the correct tool for the job..  Sure Bob I can drive that nail in with this screwdriver – see its real easy... ARrrrrrghhhhhh ;)

                  Click Click on vpn via my iphone, click click on a different profile using different port and tcp vs udp and even ipv6 access.

                  vpnios.PNG
                  vpnios.PNG_thumb
                  vpniosipv6.PNG
                  vpniosipv6.PNG_thumb

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.