Hello,
i was configuring a vpn server as a surf gateway.
I can connect via vpn and i also get a ip (10.8.0.xx) but when im connected with the client i have no internet.
Maybe i forgot something?
Thanks,
Syd
Here are my configs :
server :
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
.
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
client :
client
dev tun
proto udp
remote syds.vpn.server.tld 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert syd.crt
key syd.key
ns-cert-type server
comp-lzo
verb 3
iptables rules :
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s 10.8.0.0/24 -j ACCEPT
iptables -A FORWARD -j REJECT
iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to xxx.xxx.xxx.xxx (this is actuly filled with my server ip)