Page 1 of 1

Fowarding Traffic via Port UDP 53

Posted: Fri Jul 24, 2015 1:52 am
by KrizzThialk
I have a Ubuntu Server in Digital Ocean , and im looking to bypass a very restrictive firewall from a known ISP , my server config is something like this

Code: Select all

port 53
proto udp
dev tun
scramble obfuscate test
ca ca.crt
cert server.crt
key server.key
tls-auth ta.key 0
dh dh2048.pem
server 10.8.0.0 255.255.255.0
cipher AES-256-CBC
comp-lzo
persist-key
persist-tun
user nobody
group nogroup
status openvpn-status.log
verb 3
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 5 30
and my client is something like this :

Code: Select all

client
dev tun
scramble obfuscate test
proto udp
remote 44.xx.xx.xx 53
resolv-retry infinite
lport 9200
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
tls-auth ta.key 1
remote-cert-tls server
cipher AES-256-CBC
comp-lzo
verb 3
fast-io
script-security 2
Its a Scrambled Config

It has no problem connecting , but i cant surf the web
even if i change the dns configs in my client .

Im guessing that iptables can help me out in this , since udp53 its the port to resolve addresses in my ISP (DNS) .

Someone knows how to foward the traffic in order to get dns to work properly ?


Thanks in Advise !

Re: Fowarding Traffic via Port UDP 53

Posted: Fri Jul 24, 2015 11:11 am
by Traffic
Ensure IP forwarding is enabled on your server and that iptables is performing NAT.

See this HOWTO:
HOWTO: Routing all client traffic (including web-traffic) through the VPN