OpenVZ Forum

Today's Messages (off)  | Unanswered Messages (on)

Forum: Support
 Topic: VPN two way communication
VPN two way communication [message #53240] Mon, 23 April 2018 07:36
adamlevine is currently offline  adamlevine
Messages: 1
Registered: April 2018
Junior Member
From: 172.98.160*
I have OpenVPN setup on Debian on a tun interface handing out 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 -o ens192 -j MASQUERADE

iptables -A OUTPUT -o tun+ -j ACCEPT

Any suggestions on how I can access the VPN clients?

Current Time: Mon Apr 23 09:30:04 GMT 2018