I am using ubuntu 12.04 to connect an openvpn server.
Two scripts update-resolv-conf and vpn-up.sh in /etc/openvpn should be executed then the connection established.
The commands following added to the configure file client.ovpn to make the two scripts run when openvpn connects and stop when openvpn disconnects:
script-security 2
up /etc/openvpn/update-resolv-conf
up /etc/openvpn/vpn-up.sh
dow
I have a OpenVPN server installed in an Amazon instance with Windows Server 2008 R2, and there's my client.
First i connect to my VPN
For some reason when i try to connect to my VPN server and RDP to it, the RDP's screen freezes after some seconds because the connection or tunnel is dropping after some seconds is established.
To set up tunnel first, i run this command:
sudo openvpn client.conf
It does not. I have openvpn running now, and the only thing in var/run/resolv.conf is a copy of the current resolv.conf (the one with the DNSs from the VPN server). I am very poor at shell scripting, but it does not seem to me that the script on the wiki is even meant to save *manually modified* resolv.conf files. All it seems to do is to work with DHCP information.
hi , can anybody suggest me how can i change the context of /etc/resolv.conf from user mode
i try make a script
Code:
sudo echo "nameserver=10.1.1.1" > /etc/resolv.conf
but i get
Quote:
permission denied for file /etc/resolv.conf
Ok, I am frustrated with how much time I has spent trying to figure out OpenVpn and DCHP / DNS configurations...
So far I can only connect vpn to work BY MANUALLY setting ip and dns (@resolv.conf). But with this setup I can't remote into my pc. I can ping my pc name, but not pcName.domainAddress which I find strange.
I can connect OK from Windows with almost the same client config file.
I have an *.ovpn file that works if I type in
sudo openvpn client.ovpn
Now I would like to start up openvpn when I boot the computer. It's a headless version of ubuntu if that matters. 12.04 64bit.
I copied filename.ovpn to /etc/openvpn but it's not starting, even if I run
service openvpn start
How can I do this?
Thanks
I have one problem with OpenVPN.
I have one problem with OpenVPN.
There are a lot drops records in the openvpn log file on the server:
Mon Oct 22 10:14:41 2012 us=726541 laptop/ххх:1194 MULTI: bad source address from client [192.168.1.107], packet dropped
grep -E "^[a-z]" server.conf
-----
port 1194
proto udp
dev tun
ca data/ca.crt
cert data/server.crt
key data/server.key
dh data/dh1024.pem
tls-server
tls-auth data/ta.k
I wanted an OpenVPN server so that I could create a private VPN network for staff to connect to the server.
However, not as planned, when clients connect to the VPN, it's using the VPN's internet connection (ex: when going to whatsmyip.com, it's that of the server and not the clients home connection).
server.conf
local <serverip>
port 1194
proto udp
dev tun
ca ca.crt
cert x.crt
key x.key