Hi, I'd like to use Openvpn server on Openwrt that acts as a remote gateway, but when the client connects to it, internet stop working.
## server.conf ##
port 1194
proto tcp
dev tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh2048.pem
tls-auth /etc/openvpn/keys/ta.key
server 10.6.3.0 255.255.255.0
ifconfig-pool-persist ipp.txt
#cipher AES-256-CBC
#auth SHA512
tun-mtu 1500
cipher none
auth none
mssfix 0
fragment 0
push "redirect-gateway def1"
#set the dns servers
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
sndbuf 0
rcvbuf 0
push "sndbuf 393216"
push "rcvbuf 393216"
keepalive 10 30
comp-lzo
persist-key
persist-tun
down-pre
verb 3
## client.conf ##
client
dev tun
proto tcp
remote myip.com 80
resolv-retry infinite
nobind
persist-key
persist-tun
ns-cert-type server
;cipher AES-256-CBC
;auth SHA512
cipher none
auth none
comp-lzo
tun-mtu 1500
fragment 0
mssfix 0
verb 3
script-security 2
up "/etc/openvpn/up.sh"
down " /etc/openvpn/down.sh"
<ca>
...
## /etc/config/firewall on the server ##
config zone
option name 'vpn'
option input 'ACCEPT'
option output 'ACCEPT'
option network 'VPN'
option forward 'ACCEPT'
option masq '1'
option mtu_fix '1'
config forwarding
option dest 'wan'
option src 'vpn'
What's wrong?
(Last edited by lamero on 11 Sep 2016, 17:26)