Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 05-02-2007, 05:00 AM   #1
LQ Newbie
Registered: May 2007
Posts: 6

Rep: Reputation: 0
ping: sendmsg: Operation not permitted

Hi everyone,

I am trying to set up a VPN between two branches. Branch A is on subnet and branch B is on subnet
I am using Juniper IPSEC VPN concentrators on both sides. I have no control over the VPN terminator in branch B, have only been given the parameters.

A test machine in branch B with IP has been set up with a static route pointing to the VPN terminator on branch B LAN.

I have set up a test machine on branch A lan with ip address and a static route directing all traffic destined for to the internal interface of the VPN terminator,

Now here is where it gets a bit sticky.

Branch A is located in another country so I am logged in via SSH to a second interface on the test machine. This interface is on a public ip.

here is ifconfig:

eth0 Link encap:Ethernet HWaddr 00:02:44:9C:63:1B
inet addr: Bcast: Mask:
inet6 addr: fe80::202:44ff:fe9c:631b/64 Scope:Link
RX packets:24327733 errors:0 dropped:0 overruns:0 frame:0
TX packets:19821600 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3429279278 (3270.4 Mb) TX bytes:4132813808 (3941.3 Mb)
Interrupt:193 Base address:0x4400

eth1 Link encap:Ethernet HWaddr 00:0E:7F:B0:07:54
inet addr:207.x.x.x Bcast:207.x.x.x Mask:
inet6 addr: fe80::20e:7fff:feb0:754/64 Scope:Link
RX packets:14669413 errors:1 dropped:0 overruns:0 frame:0
TX packets:13243137 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3131123896 (2986.0 Mb) TX bytes:2699259384 (2574.2 Mb)

lo Link encap:Local Loopback
inet addr: Mask:
inet6 addr: ::1/128 Scope:Host
RX packets:42630 errors:0 dropped:0 overruns:0 frame:0
TX packets:42630 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3386915 (3.2 Mb) TX bytes:3386915 (3.2 Mb)

and here is route -n

Destination Gateway Genmask Flags Metric Ref Use Iface
207.x.x.x U 0 0 0 eth1 U 0 0 0 eth0 U 0 0 0 eth1 UG 0 0 0 eth0 U 0 0 0 lo 207.x.x.x UG 0 0 0 eth1

I can see the internal interface of the VPN terminator:

PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=3.71 ms

But when I try to ping the test machine at branch B, I get this error:

From icmp_seq=7 Destination Host Unreachable
ping: sendmsg: Operation not permitted

My IP Tables allow ICMP originating from this host because I can ping to the private and public network. Now the question is;
Is this ping error a result of incorrect route configuration, iow, originating from my test machine, or is it because of VPN mis configuration, iow originating from the VPN terminator?




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
Can't ping localhost (ping: sendto: Operation not permitted) mentor99us Linux - Networking 7 09-05-2012 02:11 PM
ping: sendmsg: operation not permitted br_sriram Linux - Networking 24 04-03-2011 11:12 AM
iptables behaviour: sendmsg: Operation mot permitted phsythax Linux - Security 5 04-24-2007 03:18 PM
sendmsg: Operation not permitted error on wireless nic after failed routing attempt feitingen Linux - Wireless Networking 1 04-03-2007 09:16 PM
ping operation not permitted Ammad Linux - Networking 3 04-05-2006 08:23 AM

All times are GMT -5. The time now is 10:11 AM.

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