I cant get Open VPN to work to save my life

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
ngkrich
OpenVpn Newbie
Posts: 14
Joined: Sat Apr 29, 2017 11:31 pm

I cant get Open VPN to work to save my life

Post by ngkrich » Sat Apr 29, 2017 11:36 pm

Hello,

Completely new to networking and this has somewhat been driving me insane for the better part of 4 days now. I have read 5 tutorials and cannot seem to get any of them to work.

Image

Additional Config

Code: Select all

push "route 10.217.64.55 255.255.255.0"
push "dhcp-options DNS 10.217.64.186"
server 10.217.88.0 255.255.255.0

dev tun0
proto udp
keepalive 10 120
Code for the client

Code: Select all

remote myip 1194
client
dev tun
proto udp
resolv-retry infinite
nobind
persist-key
persist-tun
cipher aes-256-cbc
float
tun-mtu 1400
ca ca.crt
cert client2.crt
key client2.key

ns-cert-type server
comp-lzo
verb 3
I tried disabling the firewall in DDWRT, but that had no effect. Here are the IPtables I am currently using, though I have tried about 20 iterations.

Code: Select all

iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 10.217.88.0/24 -j ACCEPT
iptables -I FORWARD 1 --source 10.217.88.1/24 -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.217.88.1/24 -o br0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 10.217.88.1/24 -j MASQUERADE
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
I am sure I am doing something hilariously wrong, but I cannot grasp it with all the poor tutorials.

I suspect it has to do with the fact that I can not seem to get a service to see 1194 as if it were open. Despite the fact that I have the IP table configured.

Edit: My bad, wrong section. Please delete.

Post Reply