[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] OpenVPN ignores lport in some situations


  • Subject: Re: [Openvpn-users] OpenVPN ignores lport in some situations
  • From: James Yonan <jim@xxxxxxxxx>
  • Date: Thu, 13 Oct 2005 09:52:16 -0600 (MDT)

On Wed, 12 Oct 2005, Heiko Helmle wrote:

> with this configuration snippet: 
>  
> nobind 
> remote a.b.c.d 
>  
> OpenVPN does not bind the local port, which works 
> --> UDPv4 link local: [undef] 
>  
> But for getting the firewalls right, I would like to have OpenVPN bind to 1195 
> but still connect out to port 1194 
>  
> in my understanding that would be 
>  
> lport 1195 
> rport 1194 
> remote a.b.c.d 
>  
> --> Does not work, OpenVPN binds local to 1194 
>  
> so i  tried several different combinations, including setting all 
> communications to the alternate port 
>  
> port 1195 
> lport 1195 
> rport 1195 # (redundant I know...) 
> remote a.b.c.d 1195 
>  
> --> Does not work, OpenVPN _still_ binds local to 1194 
>  
> The only way to have OpenVPN not to bind to 1194 is --nobind and that binds to 
> a random one. 
>  
> How can i get OpenVPN to bind locally to a specified port? Is 1194 hardcoded? 
>  
> I need to have a specified port for originating UDP packets and 1194 is already 
> used by another OpenVPN process. 
>  
> I this possible= 

It seems to work fine for me:

ai:~/openvpn # openvpn --dev tap --verb 3 --remote 10.10.10.10 --lport 7777 --rport 8888
Thu Oct 13 09:49:50 2005 OpenVPN 2.0.2_TO3 i686-suse-linux [SSL] [LZO] 
[EPOLL] built on Sep 13 2005
Thu Oct 13 09:49:50 2005 ******* WARNING *******: all encryption and 
authentication features disabled -- all data will be tunnelled as 
cleartext
Thu Oct 13 09:49:50 2005 TUN/TAP device tap0 opened
Thu Oct 13 09:49:50 2005 Data Channel MTU parms [ L:1532 D:1450 EF:0 EB:4 
ET:32 EL:0 ]
Thu Oct 13 09:49:50 2005 Local Options hash (VER=V4): '81fa4469'
Thu Oct 13 09:49:50 2005 Expected Remote Options hash (VER=V4): '81fa4469'


Looks correct:

Thu Oct 13 09:49:50 2005 UDPv4 link local (bound): [undef]:7777
Thu Oct 13 09:49:50 2005 UDPv4 link remote: 10.10.10.10:8888

Thu Oct 13 09:49:56 2005 event_wait : Interrupted system call (code=4)
Thu Oct 13 09:49:56 2005 TCP/UDP: Closing socket
Thu Oct 13 09:49:56 2005 Closing TUN/TAP interface
Thu Oct 13 09:49:56 2005 SIGINT[hard,] received, process exiting

James


____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users