• Route all traffic through VPN (with some exceptions)

    1
    0 Votes
    1 Posts
    866 Views
    No one has replied
  • Site to site OpenVPN - restrict access to server LAN resources

    2
    0 Votes
    2 Posts
    978 Views
    DerelictD

    Connections coming IN to an OpenVPN endpoint are firewalled using rules on the OpenVPN interface.

    If you want the remote site to only have access to certain hosts:ports, create firewall aliases/pass rules with those hosts:ports as the destination.

    In this example, 172.29.64.0/24 is my local OpenVPN server that only I can connect into, so it's far more permissive.  Everything else is from work site-to-site.  The local_vpn_hosts alias includes local IPs for a copier/printer, IP phone, etc, that the work VPN needs to initiate connections to.

    Note that my connections to the remote site are governed by rules on the remote site's OpenVPN interface.

    ![Screen Shot 2014-09-06 at 10.37.27 AM.png](/public/imported_attachments/1/Screen Shot 2014-09-06 at 10.37.27 AM.png)
    ![Screen Shot 2014-09-06 at 10.37.27 AM.png_thumb](/public/imported_attachments/1/Screen Shot 2014-09-06 at 10.37.27 AM.png_thumb)

  • OpenVPN partialy working… Please help

    13
    0 Votes
    13 Posts
    3k Views
    A

    I have found the problem. In the Firewall - OpenVPN tab  I had the same rule:  from any to any  2 times , because I use DUAL WAN setup.
    The first rule was the one with DUAL WAN  gateway  instead of default gateway.  See picture attached.

    Regards,
    Adrian

    ![pfsense openvpn firewall rules.PNG](/public/imported_attachments/1/pfsense openvpn firewall rules.PNG)
    ![pfsense openvpn firewall rules.PNG_thumb](/public/imported_attachments/1/pfsense openvpn firewall rules.PNG_thumb)

  • Traffic / Gateway question

    2
    0 Votes
    2 Posts
    823 Views
    S

    I believe this is resolved now.  I spoke with Jim P. and it sounds like I can create a LAN firewall rule and specify the source IPs and destination port, and then pick the Gateway specifically, and the traffic should go around the primary OpenVPN tunnel between the sites.

  • 0 Votes
    3 Posts
    1k Views
    J

    @jimp:

    The user's password is not stored in the clear on the firewall so what you're asking is not possible.

    Furthermore, storing user credentials is not recommended and not something we'll likely encourage. If you will store the user/pass you may as well not require it, leaving it only to have certificates for authentication (e.g. change mode from SSL/TLS + User Auth to only SSL/TLS)

    Good reply.  I didn't know I could just disable the password requirement and I appreciate that the passwords are not stored in plaintext on the firewall.  Thank you.

  • How to access local IPs

    10
    0 Votes
    10 Posts
    2k Views
    I

    Oh, wait, I just thought of something.. Just to check, when you are running your VPN client are you running it as Administrator? This kind of sounds like the actual routes are being set on the client pc. If you are running it as an admin, would you mind posting a traceroute output going from the client to a machine on the other side of your vpn?

  • Client Connection Notification via E-Mail

    3
    0 Votes
    3 Posts
    1k Views
    P

    Is there nobody who want this feature?

    Regards,
    David

  • Routing network from vpn client to lan network

    3
    0 Votes
    3 Posts
    838 Views
    M

    Make sure there's an any/any rule on your openvpn tab.

    Post your server1.conf.

  • Let's get IPVanish working with pfSense 2.0.3

    16
    0 Votes
    16 Posts
    12k Views
    A

    yes, but I found the solution. The Firewall Rules are descending. They were in the wrong order. I found out by deleting and creating them manually again. Then aftwerwards I found the arrow icon to move the rules, gave myself a big slap on the forehead ::)
    But thanks for the help though

  • OpenVPN dropouts every 30 mins with IPv6

    1
    0 Votes
    1 Posts
    745 Views
    No one has replied
  • PfSense Endian OpenVPN site to site

    1
    0 Votes
    1 Posts
    3k Views
    No one has replied
  • Can't connect to Subnets from my Site-to-Site VPN

    4
    0 Votes
    4 Posts
    1k Views
    DerelictD

    What are the firewall rules on site 2's openvpn interface?  Those determine what hosts at site2 are accessible via openvpn.

  • Site-to-Site works but I cannot access the connected subnet

    7
    0 Votes
    7 Posts
    1k Views
    ?

    …on BOTH sides of the tunnel added?

    I have TCP/UDP and ICMP allowed for the tunnel, dunno if that makes a difference.

    Show us your openVPN log for the connection and check in firewall logs on both sides that nothing is blocked.

  • Easy OpenVPN question

    3
    0 Votes
    3 Posts
    990 Views
    E

    meh please delete this thread. I have figured it all out :)

    Thanks though!

  • 0 Votes
    1 Posts
    837 Views
    No one has replied
  • RADIUS + iroute (Client Specific Overrides)

    4
    0 Votes
    4 Posts
    1k Views
    G

    I made some additional code changes to check the Framed-Route format to ensure it complies with the RFC.

    /etc/inc/openvpn.auth-user.php

    /** *  Convert Framed-Route format to iroute for the CCD file */ function FramedRoute($cidr) {     $baseip = substr($cidr,0,strpos($cidr, '/'));     $prefix = substr($cidr, strpos($cidr, '/') + 1) * 1;     $netmask = str_split(str_pad(str_pad('', $prefix, '1'), 32, '0'), 8);     $ipLong = ip2long($baseip);     if ( ( ($ipLong << $prefix) ^ 0) == true ) {         foreach ($netmask as &$element) $element = bindec($element);         return $baseip.' '.join('.', $netmask);     } } if (isset($attributes['framed_route'])) {         $iroute = FramedRoute($attributes['framed_route']);         if (!empty($iroute)) {             file_put_contents("{$g['varetc_path']}/openvpn-csc/{$username}", "iroute {$iroute}\n");             syslog(LOG_NOTICE, "user '{$username}' iroute '{$iroute}' created\n");         } }

    I'm creating static openvpn-csc file that could cause issues in the future.

    Should I be looking at,

    deleting the created openvpn-csc on client disconnect

    using the openvpn_resync_csc function

  • Any way to deal with fast changing IP

    5
    0 Votes
    5 Posts
    1k Views
    T

    @scurrier:

    Two thoughts.

    How can it change your IP so fast while still allowing others to maintain a connection to you?

    It's pretty common, it wouldn't affect most things.
    How would someone on AOL Dialup for example maintain a connection?

    Have you tried disabling IPV6 on your phone?  On Tmobile there is a way to do this by changing your APN settings, I think.

    I'll give it a look.

  • OpenVPN Server WAN Failover Using GW Group Question

    3
    0 Votes
    3 Posts
    953 Views
    S

    As usual, the reason I could not get a pfSense feature working was an oversight on my part. I discovered and fixed the problem and now its working just fine. I had a 1 to 1 NAT on the secondary WAN's primary address that took over after I removed the port forward that was redirecting the OpenVPN port to where it was listening on my LAN. After moving that port forward to another virtual IP, everything works as designed. OpenVPN is now listening on my WAN Group. Failover to tier 2 and recovery to tier 1 now works flawlessly.

  • Tunnel works but status says service is stopped.

    3
    0 Votes
    3 Posts
    1k Views
    S

    Same thing happening in this thread: https://forum.pfsense.org/index.php?topic=77637.0

  • OpenVPN Status incorrect

    3
    0 Votes
    3 Posts
    1k Views
    S

    Yes, others are having this problem.  See here: https://forum.pfsense.org/index.php?topic=77637.0

Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.