Are you referring to routing ALL (VPN and internet) traffic though your server VPN? If you are, then yes you can. See here for the how-to.
Thanks,
How could I miss that one? I will try that very soon. That should be what I need.
Are you referring to routing ALL (VPN and internet) traffic though your server VPN? If you are, then yes you can. See here for the how-to.
Thanks for your very detailed guide.
I am using PIAF installed as a VMware machine. Do the tricks above still work? If so I want to try.
In regard of DNS issue, have you ever tried Google DNS 8.8.8.8 instead of local DNS? like: push "dhcp-option DNS 8.8.8.8" ?
To enable routing between the VPN LAN and local LAN perform the edits on the Easy OpenVPN VM:
iptables -t nat -A PREROUTING -i tun0 -j DNAT --to VM.ip" (where VM.ip is the ipaddress of eth0)
[root@vpn EasyOpenVPN]# iptables -t nat -A PREROUTING -i tun0 -j DNAT --to 192.168.100.250
iptables v1.3.5: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
That was it!
I must have missed that step. Thanks!
It worked like a champ!
Now to VPN into the bad boy...
rpmbuild --rebuild /root/EasyOpenVPN/lzo-1.08-4.rf.src.rpm
rpm -Uvh /usr/src/redhat/RPMS/i386/lzo-*.rpm
rpm -ivh /root/EasyOpenVPN/pkcs11-helper-*.rpm
#Fix openvpn.spec file
cp /root/EasyOpenVPN/openvpn.spec.fixed /usr/src/redhat/SPECS/openvpn.spec
cp openvpn-2.1.0.tar.gz /usr/src/redhat/SOURCES/
rpmbuild -bb /usr/src/redhat/SPECS/openvpn.spec
#Install
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
# 64-bit stuff here
rpm -ivh /usr/src/redhat/RPMS/x86_64/openvpn-2.1.0-1.x86_64.rpm
else
# 32-bit stuff here
rpm -ivh /usr/src/redhat/RPMS/i386/openvpn-2.1.0-1.i386.rpm
fi
rpmbuild --rebuild /root/EasyOpenVPN/lzo-1.08-4.rf.src.rpm rpm -Uvh /usr/src/redhat/RPMS/i386/lzo-*.rpm rpm -ivh /root/EasyOpenVPN/pkcs11-helper-*.rpm
The above installs/rebuilds packages.
#Fix openvpn.spec file cp /root/EasyOpenVPN/openvpn.spec.fixed /usr/src/redhat/SPECS/openvpn.spec
The above fixes a centos issue with the default openvpn.spec file.
cp openvpn-2.1.0.tar.gz /usr/src/redhat/SOURCES/ rpmbuild -bb /usr/src/redhat/SPECS/openvpn.spec
The above rebuilds openvpn.spec file with "fixed" version.
#Install MACHINE_TYPE=`uname -m` if [ ${MACHINE_TYPE} == 'x86_64' ]; then # 64-bit stuff here rpm -ivh /usr/src/redhat/RPMS/x86_64/openvpn-2.1.0-1.x86_64.rpm else # 32-bit stuff here rpm -ivh /usr/src/redhat/RPMS/i386/openvpn-2.1.0-1.i386.rpm fin
The above detects 64/32 bit systems.
The easiest way to find the error causing your issue is run each command in scripts 1 and 2 manually.
Link up your team and customers Phone System Live Chat Video Conferencing
Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.
Check your inbox!
We’ve sent you an email. Click on the button in the email body to verify your email address – (if you can not find it, check your spam folder).
Upon verification you will be directed to the 3CX setup wizard.