LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-27-2014, 06:04 PM   #1
sousacanfly
LQ Newbie
 
Registered: Jan 2014
Posts: 28

Rep: Reputation: Disabled
Make VPN clients visible to each other.


I need to access some VMs inside the VPN network, from client-to-client but i can't even ping from client-to-client. Not anymore, i was able yesterday, don't understand what i did.

How can i do this?

I'm using openswan
 
Old 02-27-2014, 06:20 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Is this your network? Do you have full access to troubleshoot the firewalls/routers/servers/vm's?
 
Old 02-27-2014, 07:10 PM   #3
sousacanfly
LQ Newbie
 
Registered: Jan 2014
Posts: 28

Original Poster
Rep: Reputation: Disabled
It is my network. I have full access. Are you telling me this behaviour isn't normal?

i forgot to refer, i am accessing the VPN from the outside, and the VM is inside the Lan, but i suppose this has nothing to do with the fact.
 
Old 02-27-2014, 07:29 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
You need to go through some troubleshooting steps to see where the problem lies:

Please, please have linux.

first thing is first. Make sure you are not connected to the VPN and do a:

Code:
ifconfig
to see the ip configuration you are using.

Then connect to the VPN and do another to compare the two. You should have a new adapter called tun0 or similar. Now do a route command to check out your setup.

Code:
ip route | column -t
Ping your new gateway to make sure you can get to it.

Code:
ping #gateway ip address#
If you have problems or concerns about any of those steps. Post the output of the step in question. We can work from there.
 
Old 02-27-2014, 07:35 PM   #5
sousacanfly
LQ Newbie
 
Registered: Jan 2014
Posts: 28

Original Poster
Rep: Reputation: Disabled
I have the adapter, and the VPN is working properly addressing new IPs to the machines that connect. The problem is, i can't ping other clients, as a client. On the server-side i can ping every client.

I have run the command ip route inside the VM, and can't see other client's IPs, only from the server it shows all IPs.
 
Old 02-27-2014, 07:42 PM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
You misunderstand what routing is.

Ok. Lets try this.

Show me the output of these commands on both ends. You are welcome to obscure the addresses as long as they still logically map correctly.

Code:
ifconfig
ip route
iptables --list
 
1 members found this post helpful.
Old 02-27-2014, 08:05 PM   #7
sousacanfly
LQ Newbie
 
Registered: Jan 2014
Posts: 28

Original Poster
Rep: Reputation: Disabled
Well, after rebooting the machine i can now ping client-to-client again. I am really sorry to bother you, but i don't understand what just happened, so, i will let the outputs here for you to look through.

If you don't mind me asking, is it possible to make the ppp0 IP static, wich is, the one attributed by the VPN?

Server side:

Quote:
$ifconfig

br0 Link encap:Ethernet HWaddr c0:a0:bb:65:c6:29
inet addr:192.168.1.25 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::xxxx:xxxx:fe65:c629/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1013632 errors:0 dropped:0 overruns:0 frame:0
TX packets:1047198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:562252354 (536.2 MiB) TX bytes:773434539 (737.6 MiB)

eth0 Link encap:Ethernet
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1408825 errors:0 dropped:0 overruns:0 frame:0
TX packets:1270325 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1037889718 (989.8 MiB) TX bytes:861811440 (821.8 MiB)
Interrupt:19 Base address:0xc000

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:177365 errors:0 dropped:0 overruns:0 frame:0
TX packets:177365 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:217824320 (207.7 MiB) TX bytes:217824320 (207.7 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:22440 errors:0 dropped:0 overruns:0 frame:0
TX packets:31134 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1267800 (1.2 MiB) TX bytes:26685714 (25.4 MiB)

ppp1 Link encap:Point-to-Point Protocol
inet addr:10.8.0.1 P-t-P:10.8.0.4 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:95 (95.0 B) TX bytes:4381 (4.2 KiB)

vnet0 Link encap:Ethernet
inet6 addr: xxxx::fc54:xx:xxxx:cfce/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:383746 errors:0 dropped:0 overruns:0 frame:0
TX packets:480035 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:500
RX bytes:417094079 (397.7 MiB) TX bytes:476154465 (454.0 MiB)
Quote:
$ip route

default via 192.168.1.1 dev br0
10.8.0.2 dev ppp0 proto kernel scope link src 10.8.0.1
10.8.0.3 dev ppp1 proto kernel scope link src 10.8.0.1
xxx.254.0.0/16 dev br0 scope link metric 1000
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.25


Client-side (VIRTUAL MACHINE)

Quote:

$ifconfig

eth0 Link encap:Ethernet
inet end.: 192.168.1.19 Bcast:192.168.1.255 Masc:255.255.255.0
endereço inet6: xxxx::5054:ff:xxxx:cfce/64 Escopo:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Métrica:1
pacotes RX:379 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:374 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:1000
RX bytes:63269 (63.2 KB) TX bytes:45486 (45.4 KB)

lo Link encap:Loopback Local
inet end.: 127.0.0.1 Masc:255.0.0.0
endereço inet6: ::1/128 Escopo:Máquina
UP LOOPBACK RUNNING MTU:65536 Métrica:1
pacotes RX:54 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:54 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:0
RX bytes:4270 (4.2 KB) TX bytes:4270 (4.2 KB)

ppp0 Link encap:Protocolo Ponto-a-Ponto
inet end.: 10.8.0.4 P-a-P:10.8.0.1 Masc:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Métrica:1
pacotes RX:134 erros:0 descartados:0 excesso:0 quadro:0
Pacotes TX:155 erros:0 descartados:0 excesso:0 portadora:0
colisões:0 txqueuelen:3
RX bytes:10841 (10.8 KB) TX bytes:12149 (12.1 KB)


Quote:
$ip route

default dev ppp0 scope link
default via 192.168.1.1 dev eth0 metric 100
10.8.0.1 dev ppp0 proto kernel scope link src 10.8.0.4
xxx.254.0.0/16 dev eth0 scope link metric 1000
192.168.1.0/24 dev eth0 proto kernel scope link src 192.168.1.19 metric 1
192.168.1.25 via 192.168.1.1 dev eth0
 
Old 02-27-2014, 08:09 PM   #8
sousacanfly
LQ Newbie
 
Registered: Jan 2014
Posts: 28

Original Poster
Rep: Reputation: Disabled
Oh well, now i can ping the VM from another client inside the VPN, but can't access the internet from the VM. Probably the whole issue is coming from the VM. As i have only The machine i'm working remotely and the VM connected to the VPN, i can't tell you if i have the hability to ping other clients besides the VM.
 
Old 02-27-2014, 08:17 PM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
Well the very first thing that I notice is that the server is using English and your client is using Spanish?

I've had VERY strange problems in the past with Italian contractors trying to connect to my English SSL/VPN appliance.
 
1 members found this post helpful.
Old 02-27-2014, 08:26 PM   #10
sousacanfly
LQ Newbie
 
Registered: Jan 2014
Posts: 28

Original Poster
Rep: Reputation: Disabled
Really? Well, will give it a try and change language.

hehe, it's Portuguese, a bit similar to Spanish.

At VPN preferences, i removed the checkbox from "Obtain DNS server addresses automatically" and on the field "Preferred DNS server" added the IP from the server 192.168.1.25.

Now i can ping the VM from my Mac at home, and access to the internet through the VM.

Thank you very much szboardstretcher! I will search a bit on the static IP from VPN and ask later at the forum if i can't find a solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Windows7 VPN clients behind Debian Gateway can not connect to Draytek VPN neopandid Linux - Server 3 08-31-2012 11:34 PM
VPN connects, can't ping or RDP from linux clients, but Win clients are fine davidbell.mscf Linux - Networking 1 02-28-2011 05:11 PM
OpenVPN, clients can see each other, but cannot get outside over the VPN backforward Linux - Networking 4 06-16-2009 10:44 PM
How to make non-vpn machines to access VPN server deepugopi Linux - Networking 0 07-31-2007 06:55 AM
Linux server not visible to clients gain Linux - Networking 4 11-23-2006 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration