VPN 서버 구축 관련 사항입니다 in Ubuntu 11.04
제 컴퓨터에 vpn서버를 구축하려 합니다.
여기저기 검색해서 openvpn.conf를 다음과 같이 수정하였습니다.
proto tcp
port 1194
local 192.168.0.254
dev tun
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "route 10.8.0.0 255.255.255.0"
script-security 2
client-to-client
duplicate-cn
keepalive 10 120
설정을 마치고 openvpn 구동 전에
openvpn --config /etc/openvpn/openvpn.conf 를 날려 보았더니 다음과 같은 결과가 출력되었습니다.
Wed May 8 13:42:19 2013 OpenVPN 2.2.0 i686-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Jul 4 2011
Wed May 8 13:42:19 2013 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.
Wed May 8 13:42:19 2013 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Wed May 8 13:42:19 2013 TUN/TAP device tun0 opened
Wed May 8 13:42:19 2013 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
Wed May 8 13:42:19 2013 /sbin/ifconfig tun0 10.8.0.1 pointopoint 10.8.0.2 mtu 1500
Wed May 8 13:42:19 2013 Listening for incoming TCP connection on [AF_INET]192.168.0.254:1194
Wed May 8 13:42:19 2013 TCPv4_SERVER link local (bound): [AF_INET]192.168.0.254:1194
Wed May 8 13:42:19 2013 TCPv4_SERVER link remote: [undef]
Wed May 8 13:42:19 2013 Initialization Sequence Completed
제대로 세팅 되었는지 궁금하고, 여담으로 openvpn.conf 의 각 옵션에 대한 설명을 얻을 수 있을 만한 곳이 있을런지요
$exit
제목 오타입니다.
Ubuntu 버전이 11.04가 아닌 11.10 환경입니다.
댓글 달기