[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Share VPN connection



Hi,

I would like to use my computer to share a VPN connection. On Debian 7.2 :

- I get my internet connection from eth1
- I am connecting to a VPN (I am using Strong VPN)
- I share my internet connection using eth0

Everything has been setup using the graphical user interface of Gnome.

If I don't connect to the VPN, everything works well, and the internet is shared through eth0. For information, here is the result of ifconfig :

eth0      Link encap:Ethernet  HWaddr 50:e5:49:c5:c3:bd  
          inet addr:10.42.0.1  Bcast:10.42.0.255  Mask:255.255.255.0
          inet6 addr: fe80::52e5:49ff:fec5:c3bd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:36068 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39710 errors:0 dropped:46 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4632172 (4.4 MiB)  TX bytes:41117421 (39.2 MiB)
          Interrupt:41 Base address:0xe000 

eth1      Link encap:Ethernet  HWaddr a0:f3:c1:02:3b:3b  
          inet addr:192.168.1.30  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a2f3:c1ff:fe02:3b3b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:85170 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70772 errors:0 dropped:0 overruns:0 carrier:0
          collisions:31135 txqueuelen:1000 
          RX bytes:91420083 (87.1 MiB)  TX bytes:8783953 (8.3 MiB)
          Interrupt:19 Base address:0xe000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2176 (2.1 KiB)  TX bytes:2176 (2.1 KiB)

Then, when I connect to the VPN, everything works well on my Debian system. But the internet is not shared anymore. For information, here is the result of ifconfig :
eth0      Link encap:Ethernet  HWaddr 50:e5:49:c5:c3:bd  
          inet addr:10.42.0.1  Bcast:10.42.0.255  Mask:255.255.255.0
          inet6 addr: fe80::52e5:49ff:fec5:c3bd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:35709 errors:0 dropped:0 overruns:0 frame:0
          TX packets:39347 errors:0 dropped:46 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4595967 (4.3 MiB)  TX bytes:40967837 (39.0 MiB)
          Interrupt:41 Base address:0xe000 

eth1      Link encap:Ethernet  HWaddr a0:f3:c1:02:3b:3b  
          inet addr:192.168.1.30  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::a2f3:c1ff:fe02:3b3b/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:84765 errors:0 dropped:0 overruns:0 frame:0
          TX packets:70394 errors:0 dropped:0 overruns:0 carrier:0
          collisions:31067 txqueuelen:1000 
          RX bytes:91262087 (87.0 MiB)  TX bytes:8742729 (8.3 MiB)
          Interrupt:19 Base address:0xe000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:25 errors:0 dropped:0 overruns:0 frame:0
          TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2176 (2.1 KiB)  TX bytes:2176 (2.1 KiB)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:173.255.189.182  P-t-P:173.255.189.129  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1400  Metric:1
          RX packets:461 errors:0 dropped:0 overruns:0 frame:0
          TX packets:714 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:242402 (236.7 KiB)  TX bytes:89722 (87.6 KiB)

What can I do to solve that ?

Thanks for your help.

Reply to: