Hello
I've installed openvpn+Ca with webmin, on ubuntu 14.04 with 2 interfaces.
Fisrts configuration in localhost.
I've do :
edit your /etc/sysctl.conf and make sure that ip_forward is 1 (un comment it)
net.ipv4.ip_forward=1
change your vpn server routing table
sudo echo 1 > /proc/sys/net/ipv4/ip_forward
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o tun0 -m state –state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i tun0 -o eth0 -j ACCEPT
And error to start openvpn is:
Thu Apr 16 10:04:52 2015 OpenVPN 2.2.1 i686-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014
Thu Apr 16 10:04:52 2015 NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
Thu Apr 16 10:04:52 2015 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Apr 16 10:04:52 2015 WARNING: file 'keys/stic/stic_s.key' is group or others accessible
Thu Apr 16 10:04:52 2015 TLS-Auth MTU parms [ L:1539 D:138 EF:38 EB:0 ET:0 EL:0 ]
Thu Apr 16 10:04:52 2015 WARNING: potential TUN/TAP adapter subnet conflict between local LAN [192.168.1.0/255.255.255.0] and remote VPN [192.168.1.1/255.255.255.255]
Thu Apr 16 10:04:52 2015 TUN/TAP device tun0 opened
Thu Apr 16 10:04:52 2015 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Thu Apr 16 10:04:52 2015 /sbin/ifconfig tun0 192.168.1.1 pointopoint 192.168.1.2 mtu 1500
Thu Apr 16 10:04:52 2015 WARNING: potential route subnet conflict between local LAN [192.168.1.0/255.255.255.0] and remote VPN [192.168.1.0/255.255.255.0]
Thu Apr 16 10:04:52 2015 Data Channel MTU parms [ L:1539 D:1450 EF:39 EB:135 ET:0 EL:0 AF:3/1 ]
Thu Apr 16 10:04:52 2015 GID set to nogroup
Thu Apr 16 10:04:52 2015 UID set to nobody
Thu Apr 16 10:04:52 2015 UDPv4 link local (bound): [undef]
Thu Apr 16 10:04:52 2015 UDPv4 link remote: [undef]
Thu Apr 16 10:04:52 2015 Initialization Sequence Completed
Thu Apr 16 10:06:40 2015 event_wait : Interrupted system call (code=4)
Thu Apr 16 10:06:40 2015 TCP/UDP: Closing socket
SIOCDELRT: Operation not permitted
Thu Apr 16 10:06:40 2015 ERROR: Linux route delete command failed: external program exited with error status: 7
Thu Apr 16 10:06:40 2015 Closing TUN/TAP interface
Thu Apr 16 10:06:40 2015 /sbin/ifconfig tun0 0.0.0.0
SIOCSIFADDR: Permission denied
SIOCSIFFLAGS: Permission denied
Thu Apr 16 10:06:40 2015 Linux ip addr del failed: external program exited with error status: 255
Thu Apr 16 10:06:40 2015 SIGTERM[hard,] received, process exiting
i can not understand error to fix it? How can i do it?
I follow this link:
http://febru.soluvas.com/2014/02/install-openvpn-webmin-ubuntu.html