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

    VPN two way communication

    Scheduled Pinned Locked Moved OpenVPN
    2 Posts 2 Posters 470 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.
    • A
      adamlevine
      last edited by

      VPN two way communication

      I have OpenVPN setup on Debian on a tun interface handing out 10.8.0.0/24 to connect remote SIP phones to an Asterisk system. The phone connects to the vpn server and registers with the system as expected. The only issue I have is I cannot connect to the web interface of the phone that is on the vpn from the network that the vpn server is hosted. I'm guessing it has something to do with iptables but I have been unsuccessful so far.

      My current iptables configuration is…

      iptables -A INPUT -i ens192 -m state --state NEW -p udp --dport 1194 -j ACCEPT

      iptables -A INPUT -i tun+ -j ACCEPT

      iptables -A FORWARD -i tun+ -j ACCEPT
      iptables -A FORWARD -i tun+ -o ens192 -m state --state RELATED,ESTABLISHED -j ACCEPT
      iptables -A FORWARD -i ens192 -o tun+ -m state --state RELATED,ESTABLISHED -j ACCEPT

      iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o ens192 -j MASQUERADE

      iptables -A OUTPUT -o tun+ -j ACCEPT

      Any suggestions on how I can access the VPN clients?

      1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott
        last edited by

        Ummm…

        This board is about pfSense, which runs on FreeBSD and uses pf, not iptables.  Are you sure you're in the right place?

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

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