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

    OpenVPN: 2.3.2-RELEASE as Client to EC2 Ubuntu Server Config

    Scheduled Pinned Locked Moved OpenVPN
    3 Posts 2 Posters 926 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.
    • P
      pf123user
      last edited by

      I'm able to successfully connect individual clients (behind pfSense) to OpenVPN Server (Amazon EC2). I I have multiple machines handling different traffic so port forwarding/NAT for VPN traffic will not work. How do I go about connecting specific subnets within pfSense (as VPN client) to VPN server such that I can route traffic to the appropriate machines?

      EDIT: Also interested in scripting to auto-re-connect upon reboot.

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

        If you have pfsense as a client connected to some openvpn server then just use policy based routing to send the traffic you want or the machines based up IP either out the vpn or not, etc.

        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
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          well to me its pretty easy ;)  If you have any questions just ask.  Connecting to a openvpn as is pretty easy.  Is that what your running on your ec2?

          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.