after connect not browsing
Posted: Tue Jun 14, 2022 12:43 pm
Greetings to All,
I've just setup openvpn on my ubunut 18 machine. After successful connection , client unable to browse any thing.
Server_Conf
Client_Base_Conf
Firewall
Any idea what's wrong with it.
I've just setup openvpn on my ubunut 18 machine. After successful connection , client unable to browse any thing.
Server_Conf
Code: Select all
#File-Configuration
port 8800
proto udp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
dh /etc/openvpn/dh.pem
server 10.10.10.0 255.255.255.0
mode server
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.220.220"
push "dhcp-option DNS 208.67.222.222"
#push "dhcp-option DNS 8.8.4.4"
#push "dhcp-option DNS 8.8.8.8"
##client-config-dir /etc/openvpn/ccd # for fixed ip assigning for client
##ifconfig-pool-persist /etc/openvpn/ipp.txt #log previous ip of cliemt
tls-auth ta.key 0 # This file is secret
auth SHA256
key-direction 0
cipher AES-256-CBC
client-to-client
#duplicate-cn
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log
log /var/log/openvpn.log
verb 4
mute 20
Code: Select all
client
dev tun
proto udp
remote x.x.x.x 8800 #This is serve IP
resolv-retry infinite
nobind
persist-key
persist-tun
cipher AES-256-CBC
auth SHA256
remote-cert-tls server
key-direction 1
comp-lzo
auth-nocache
verb 3Code: Select all
#!/bin/bash
#Flush_Rules
iptables -t nat -F
#Flush_All_Rules
iptables -F
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i tun0 -o eth0 -j ACCEPT
iptables -A INPUT -p udp --dport 8800 -j ACCEPT
iptables -A INPUT -p tcp --dport 10022 -j ACCEPT
iptables -A INPUT -i tun0 -j ACCEPT
iptables -A OUTPUT -o tun0 -j ACCEPT