:: Setting up VPN using Amrita VPN :: | |||
HOME |
amvpn@zidler:~> cat /home/amvpn/amvpn.conf #For more options take a look at /etc.amvpn.conf. tunnel-ip 192.168.254.201 #Ip-Address that we want to allocate to out side of the tunnel. #server-ip 131.193.50.184 #Required ONLY AT THE CLIENT.Comment out at SERVER route-ip 192.168.254.0 #Route to peer. route-mask 255.255.255.0 #Netamsk route-ip 192.168.0.0 #Route to remote Network (Private N/W behind Mia) route-mask 255.255.255.0 #Netmask run-as-user amvpn #Run as used amvpn private-key-file /home/amvpn/certificates/amvpn_zidler_key.pem #Location of Private key file. cert-file /home/amvpn/certificates/amvpn_zidler_cert.cert #Location of certificate file signed by CA. ca-cert-path /home/amvpn/certificates/cacert.cer #Location of CA certificate. #reconnect-delay 30 #reconnect delay in seconds - default 30 #reconnect-attempts 3 #reconnect attempts - default 3 -------------------------------------------------------------------------------------------- amvpn@mia:~> cat /home/amvpn/amvpn.conf #For more options take a look at /etc.amvpn.conf. tunnel-ip 192.168.254.200 server-ip 131.193.50.184 route-ip 192.168.254.0 route-mask 255.255.255.0 route-ip 192.168.2.0 route-mask 255.255.255.0 run-as-user amvpn private-key-file /home/amvpn/certificates/amvpn_mia_key.pem cert-file /home/amvpn/certificates/amvpn_mia_cert.cert ca-cert-path /home/amvpn/certificates/cacert.cer #reconnect delay in seconds - default 30 #reconnect-delay 30
amvpn@zidler:/home/amvpn# amvpn -c /home/amvpn/amvpn.conf -l verbose Amrita Virtual Private Network Software (AmritaVPN) v0.95 Amrita Innovative Technology Foundation Labs, Amrita Institutions, India. Configuration option: tunnel-if, not set. Using the default value: tun0. Configuration option: port, not set. Using the default value: 7171. Configuration option: proxy-port, not set. Using the default value: 3128 --SNIP-- ---------------------------------------------------------------------- [amvpn@mia amvpn]# amvpn -c /home/amvpn/amvpn.conf -l verbose Amrita Virtual Private Network Software (AmritaVPN) v0.95 --SNIP--
papers@mia:> ifconfig --SNIP-- tun0 Link encap:Point-to-Point Protocol inet addr:192.168.254.200 P-t-P:192.168.254.200 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:10 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)I don't know why it shows the same IP address for both "inet addr" and "P-t-P:". Need to check if this is correct.