Fowarding Traffic via Port UDP 53

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
KrizzThialk
OpenVpn Newbie
Posts: 1
Joined: Fri Jul 24, 2015 1:42 am

Fowarding Traffic via Port UDP 53

Post by KrizzThialk » Fri Jul 24, 2015 1:52 am

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 !

User avatar
Traffic
OpenVPN Protagonist
Posts: 4066
Joined: Sat Aug 09, 2014 11:24 am

Re: Fowarding Traffic via Port UDP 53

Post by Traffic » Fri Jul 24, 2015 11:11 am

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

Post Reply