Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

i have openvpn server and the client are able connect to the server by ( openvpn Gui ver2.2beta5 ) but the clients can't surf the internet what can i do to solve this problem??????

thanks all

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

Ensure your IP forwarding is enabled:

sysctl net.ipv4.ip_forward=1
echo "sysctl net.ipv4.ip_forward = 1" >> /etc/sysctl.conf

NAT is configured right:

iptables -v -t nat -A POSTROUTING -o EXTERNAL_IF -s 10.10.0.0/24 -j SNAT --to-source SERVER_IP

And default gateway is set correctly:

ifconfig 10.10.0.1 255.255.255.0
ifconfig-pool 10.10.0.2 10.10.0.128
push "redirect-gateway def1"
push "route-gateway 10.10.0.1"
share|improve this answer
    
You are making a lot of assumptions here, I think we might need a lot more detail from the OP. –  DutchUncle Jan 24 '11 at 23:44
    
how can i get this config –  ahmed Jan 25 '11 at 7:18
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.