Hi everyone,
ive spent a full day again today trying to get openVPN working with CSF.
I tried adding *.*.*.*:1194 into the CSF allowed list but that didnt work.
I think the problem i have is with how i am forwarding the internet connection:
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -j SNAT --to-source 83.***.***.211
those are the commands that i need to type into console after each time i restart iptables or CSF.
however, it doesnt always give me access to outside internet sites. On my iphone, using GuizmOVPN i can only get local websites that are hosted on the server.
Here are the ip addresses that OpenVPN has assigned in open-status.log:
OpenVPN CLIENT LIST
Updated,Sat Aug 6 16:02:23 2011
Common Name,Real Address,Bytes Received,Bytes Sent,Connected Since
iphone,62.31.16.xxx:55013,158401,1006694,Sat Aug 6 15:30:38 2011
james,62.31.16.xxx:55089,1343732,19617702,Sat Aug 6 15:44:07 2011
ROUTING TABLE
Virtual Address,Common Name,Real Address,Last Ref
10.8.0.6,james,62.31.16.xxx:55089,Sat Aug 6 16:02:22 2011
10.8.0.10,iphone,62.31.16.xxx:55013,Sat Aug 6 15:59:52 2011
GLOBAL STATS
Max bcast/mcast queue length,0
END
all internal websites working, such as cpanel, emails, whm etc, but cant get outside websites to work,
please someone help me if you can 🙂
thank you
james