[CentOS] NetworkManager, Vpnc and Centos 5.3 Problem.

Tue Jun 2 11:58:33 UTC 2009
Abdullah Teke <ateke.groups at gmail.com>

Hi;
I have Centos 5.3 on my labtop and have to vpn a cisco vpn server. So i
installed vpnc on my box. Then i want to integrate with NetworkManager and
vpnc so i also installed NetworkManager-vpnc 7.0. I configured vpn
connection and tried to connect. It looks like it connected but when i try
to login my server at behind of the vpn server, i cant reach them. I check
the routes and it looks like at below.

[root at localhost sysconfig]# route
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
xxx.xxx.xxx.xxx   10.15.1.1       255.255.255.255 UGH   0      0        0
eth0
10.255.0.136    *               255.255.255.248 U     0      0        0 tun0
10.15.0.0       *               255.255.0.0     U     1      0        0 eth0
default         *               0.0.0.0         U     0      0        0 tun0

When i check the log files everthing seems ok at all.

Jun  2 14:43:46 localhost NetworkManager: <info>  Starting VPN service
'org.freedesktop.NetworkManager.vpnc'...
Jun  2 14:43:46 localhost NetworkManager: <info>  VPN service
'org.freedesktop.NetworkManager.vpnc' started
(org.freedesktop.NetworkManager.vpnc), PID 22320
Jun  2 14:43:46 localhost NetworkManager: <info>  VPN service
'org.freedesktop.NetworkManager.vpnc' just appeared, activating connections
Jun  2 14:43:46 localhost NetworkManager: <info>  VPN plugin state changed:
1
Jun  2 14:43:46 localhost NetworkManager: <info>  VPN plugin state changed:
3
Jun  2 14:43:46 localhost NetworkManager: <info>  VPN connection 'xxxxx'
(Connect) reply received.
Jun  2 14:43:47 localhost NetworkManager: <info>  VPN connection 'xxxxx' (IP
Config Get) reply received.
Jun  2 14:43:47 localhost NetworkManager: <info>  VPN Gateway:
xxx.xxx.xxx.xxx
Jun  2 14:43:47 localhost NetworkManager: <info>  Tunnel Device: tun0
Jun  2 14:43:47 localhost NetworkManager: <info>  Internal IP4 Address:
10.255.0.89
Jun  2 14:43:47 localhost NetworkManager: <info>  Internal IP4 Prefix: 29
Jun  2 14:43:47 localhost NetworkManager: <info>  Internal IP4
Point-to-Point Address: 10.255.0.89
Jun  2 14:43:47 localhost NetworkManager: <info>  Maximum Segment Size
(MSS): 0
Jun  2 14:43:47 localhost NetworkManager: <info>  Internal IP4 DNS:
192.168.90.51
Jun  2 14:43:47 localhost NetworkManager: <info>  DNS Domain: '(none)'
Jun  2 14:43:47 localhost NetworkManager: <info>  Login Banner:
Jun  2 14:43:47 localhost NetworkManager: <info>
-----------------------------------------
Jun  2 14:43:47 localhost NetworkManager: <info>  (null)
Jun  2 14:43:47 localhost NetworkManager: <info>
-----------------------------------------
Jun  2 14:43:48 localhost NetworkManager: <info>  VPN connection 'xxxxx' (IP
Config Get) complete.
Jun  2 14:43:48 localhost NetworkManager: <info>  Policy set 'System eth0'
(eth0) as default for routing and DNS.
Jun  2 14:43:48 localhost NetworkManager: <info>  VPN plugin state changed:
4



Then i tried at the console and run the vpnc command and enter the vpn
information from command line like below it is worked

[root at localhost sysconfig]# vpnc
Enter IPSec gateway address: xxx.xxx.xxx.xxx
Enter IPSec ID for xxx.xxx.xxx.xxx: xxx
Enter IPSec secret for xxx at xxx.xxx.xxx.xxx
Enter username for xxx.xxx.xxx.xxx: xxx-xxx
Enter password for xxx-xxx at xxx.xxx.xxx.xxx
VPNC started in background (pid: 19071)...

I can reach my servers. There isnt any error while try with networkmanager
vpnc, but it cant connect actually When i looked at routes again. It is
shown the same values. Any idea?

-- 
Abdullah Teke
---------------------------
abdullahteke at gmail.com
www.abdullahteke.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20090602/09ad6e04/attachment-0004.html>