It looks like you're new here. If you want to get involved, click one of these buttons!
Yes, another OpenVPN topic. Yet again about being connected but not having internet access, but this time on Ubuntu 12.04. I tried using the 'knowledge' I gained about OpenVPN in the past, but I haven't been able to solve this myself.
First of all, it was a challenge for a noob like me to get it running on Ubuntu 12.04. Apparently there's an bug in the package which gives an error about a missing file (https://bugs.launchpad.net/ubuntu/+source/openvpn/+bug/998918). However, the file is there, only in another location. This can be solved by using a slightly adapted command which can be read in the last comment from the link above:
cd /etc/openvpn/easy-rsa/2.0 sudo ln -s openssl-1.0.0.cnf openssl.cnf
After that, I was unable to start dnsmasq. It complained about the port/address being in use. Apparently bind9 runs by default on Ubuntu 12.04 so to solve that just do an apt-get remove bind9 and it should start.
Last but not least, I added the following rule to my IPTables because I had to use it in the past to get internet access working: iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to-source VPSIP
Sadly, this did not do the trick this time.
Any ideas?
I am running Ubuntu 12.04 on a OpenVZ VPS and setup OpenVPN using this tutorial from Linode in combination with the changes described above: https://library.linode.com/networking/openvpn/ubuntu-10.10-maverick
Thanks!
Linux noob willing to learn.
Comments
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to VPSIP
Assuming you are using 10.8.0.0/24 for your VPN.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksiptables -t nat -A POSTROUTING -s 1.2.3.0/24 -j SNAT --to x.x.x.x
Edit: Nyr beat me to it.
Time is good and also bad. Life is short and that is sad. Dont worry be happy thats my style. No matter what happens i won't lose my smile!
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYes I am. Just following the tutorials from Linode :)
Linux noob willing to learn.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksStreaming lagu sunda powered by RamNode
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI feel dumb. I made a typo in the IP with regard to iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to-source VPSIP I corrected the error and now it works accordingly... my bad. Hopefully those who are trying to get OpenVPN running on Ubuntu 12.04 can benefit from my tips in the first post though!
Thanks guys!!
Linux noob willing to learn.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankswhy do you need dnsmasq? isn't using google dns,opendns etc pretty much the same thing?
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksHello i know you are a person who can do open vpn on debian. I need a good open vpn for voip on debian. can you teach me? how can configure open vpn on debian with connect to vpn server? Khan.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksAFAIK You need dnsmasq to push the DNS to your clients. Sure you can set OpenDNS or Google DNS in your DNSMasq file, but running your own can also be done.
I know how to do it on Ubuntu, but Debian is pretty similar. Follow this tutorial: http://library.linode.com/networking/openvpn/debian-6-squeeze
Good luck!
Linux noob willing to learn.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksHi Can I talk with you by skype/msn or yahoo massanger? If you have then pls send me then i can add you & talk with you live.
Khan.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksi can install openvpn on debian np but i dont know where i need to set public ips, default gateway ip, dns & subnet musk? also where i put vpn server ip on debian configure?
Khan.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI have no idea what you are trying to accomplish here so I am sorry but I cannot help you. I can only install a basic OpenVPN deployment and thats it.
Linux noob willing to learn.
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankshow can connect debian server with main vpn server?
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankspush "nameserver 4.2.2.1 4.2.2.2" in your openvpn server config will set the dns on the client, without you needing to run dnsmasq.
FreeVPS.us - The oldest post to host VPS provider
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks