Re: Problem setting up poptop on RHEL5

Steve Phillips <[email protected]>
Newsgroups gmane.network.poptop
Message-ID <[email protected]>
On 1/09/2011 3:10 PM, James Cameron wrote:
> On Thu, Sep 01, 2011 at 11:29:14AM +1000, Steve Phillips wrote:
>> I guess I was asking if there was a way to specify the source IP for
>> the GRE packets.
>
> When the control connection arrives on port 1723, the getsockname
> syscall is used to obtain the IP address of the local end of the
> connection.  pptpctrl.c:173.
>
> This IP address is then used in the bind syscall so that the GRE packets
> will have the same source IP address.  pptpgre.c:87
>
> So please use tcpdump and confirm the connections are going to the
> correct IP address?

No problem..

* edited /etc/pptpd.conf and added
listen 74.53.155.174

* restarted pptpd
* verified that it had started and bound to the pptp port
# netstat -anp | grep LIST | grep 1723
tcp        0      0 74.53.155.174:1723          0.0.0.0:* 
     LISTEN      10278/pptpd


* Start tcpdump to capture tcp/1723 or protcol 47 or protocol icmp
* initate vpn

And bizzare, for some reason this now works and I'm not too sure what 
I've done.

C:\Documents and Settings\Steve>tracert -d 210.48.65.2

Tracing route to 210.48.65.2 over a maximum of 30 hops

   1   222 ms   237 ms   222 ms  10.101.0.1
   2   233 ms   227 ms   279 ms  74.53.155.169
   3   338 ms   386 ms   330 ms  70.87.254.153
   4   414 ms   562 ms   220 ms  70.87.255.109
   5   322 ms   361 ms   352 ms  70.87.255.37
   6   276 ms   621 ms   295 ms  70.87.253.193

This was a tracert from my now vpn connected box.

The really weird thing is that I've done this exact same thing multiple 
times yet it hasn't worked.

Thanks muchly for the help.

(also, as for the socket writing and root - yeah, I was root - dedicated 
server running RHEL 5 (no virtual machine etc) - I might take more of a 
look into this at a later point. I also downloaded the sources and can 
see where you capture the pptp connected i/f and then reuse that in the 
GRE bind, I really am at a loss as to why this failed in the past, even 
when I had it expressly bound to .174)

Weird.

-- 
Steve.

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev

_______________________________________________
Poptop-server mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/poptop-server
smime.p7s (application/pkcs7-signature, 5 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.