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

Sanity check for openvpn clients accessing LAN

Scheduled Pinned Locked Moved OpenVPN
6 Posts 4 Posters 1.8k 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.
  • D
    danswartz
    last edited by Dec 4, 2013, 1:13 AM

    I have it all installed and working fine.  Unfortunately, the LAN servers see the client coming from the special openvpn subnet.  This was annoying because I have a couple of servers locked down to disallow anything from other than the LAN.  I got this working the way I want, by adding a NAT rule telling pfsense 'anything going out the LAN from 10.0.8.0/24, NAT to 10.0.0.254' (the latter is the LAN IP of pfsense.)  It works okay, just want confirmation this is the best way to do this.  Thanks!

    1 Reply Last reply Reply Quote 0
    • H
      heper
      last edited by Dec 4, 2013, 9:10 AM

      what defines "the best way" ?

      a possible down-side of that way of working is that the logs in your LAN-server will allways show connections from the pfsense ip ==> no clue who/what/when

      1 Reply Last reply Reply Quote 0
      • D
        danswartz
        last edited by Dec 4, 2013, 2:18 PM

        I should probably have said 'best practice', as there is often (not always) an agreed-on answer to that.  As far as logfile confusion, I am literally the only person who uses this VPN, so that is not a concern…

        1 Reply Last reply Reply Quote 0
        • N
          Nachtfalke
          last edited by Dec 4, 2013, 3:58 PM

          Hi,

          not sure but wouldn't it be the better way to use OpenVPN in TAP (bridging) mode and not TUN (routing) mode?
          Didn't try that so just a suggestion.

          1 Reply Last reply Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator
            last edited by Dec 4, 2013, 4:52 PM Dec 4, 2013, 4:49 PM

            NAT would never be best practice ;)

            Why don't you just adjust your server rules to allow the openvpn segments or specific IPs on those segments that get handed out to specific users, etc.  This way you can adjust only the firewalls on the server vpn users need access too.  If you make it look like your vpn users are on the lan - you could have issues with access to stuff they should not have access to from the vpn, etc.  Adjusting the firewall rules to allow only the traffic you want provides way more flexibility than NAT.

            There are always multiple ways to skin the cat, natting should be the last possible choice IMHO!

            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
            • D
              danswartz
              last edited by Dec 4, 2013, 4:59 PM

              Fair enough.  Like I said, though, I am literally the only person who has access to this VPN.  Thanks, I think I will figure out how to secure access from the VPN subnet just to be safe, and remove the NAT rule…

              1 Reply Last reply Reply Quote 0
              6 out of 6
              • First post
                6/6
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                This community forum collects and processes your personal information.
                consent.not_received