It is currently Sun Aug 19, 2018 8:19 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: tunnel state
PostPosted: Thu Jan 27, 2011 12:17 am 

Joined: Wed Jan 26, 2011 11:55 pm
Posts: 11
Hi,
I am new to Openl2tp. I am trying to establish a tunnel between two computers in the same network and I receive these messages:

l2tp> tunnel create tunnel_name=six dest_ipaddr=10.51.0.16
Created tunnel 6120
l2tp> tunnel list
TunId Peer Local PeerTId ConfigId State
6120 10.51.0.16 10.51.0.13 0 1 WAITCTLREPLY
l2tp> tunnel list
TunId Peer Local PeerTId ConfigId State
6120 10.51.0.16 10.51.0.13 0 1 CLOSING


Should I accept the tunnel connection on the other host ? If yes, how I can do this ?
How can I create the tunnel with an Active state ?

Thanks in advance


Top
 Profile  
 
 Post subject: Re: tunnel state
PostPosted: Thu Jan 27, 2011 9:46 am 

Joined: Wed Jan 26, 2011 11:55 pm
Posts: 11
I think I found the solution..., I will try and I will post the result


Top
 Profile  
 
 Post subject: Re: tunnel state
PostPosted: Thu Jan 27, 2011 9:39 pm 

Joined: Wed Jan 26, 2011 11:55 pm
Posts: 11
Always the same problem. I created the LNS but it doesn't accept the tunnel... On the LNS computer I see the tunnel, but in a short time (passing the states wait, closing) they dissappear.

Do you have any solution for my problem ?
Thanks in advance

P.S
In the l2tpconfig documentation seems to be a small error in the example

Quote:
l2tp> peer profile create profile_name=mysubnet \
ip_addr=1.2.3.0 netmask=255.255.255.0
Created peer profile mysubnet

actually in place of ip_addr should be peer_ipaddr (IP address of peer)


Top
 Profile  
 
 Post subject: Re: tunnel state
PostPosted: Mon Jan 31, 2011 12:49 am 

Joined: Wed Jan 26, 2011 11:55 pm
Posts: 11
the problem was solved, the firewall did all.... -maybe this can help someone

now I have another ...:(, it seems not to showing the session created, should the data be sent on the tunnel in order to enable and view the session ? (the same problem in both cases with the localhost or not)
Quote:
l2tp> tunnel create dest_ipaddr=127.0.0.1
Created tunnel 11844

l2tp> session create tunnel_id=11844
Created session 11844/44622

l2tp> session show tunnel_id=11844 session_id=44622
Operation failed: Session not found
Error at or near 'show'


Top
 Profile  
 
 Post subject: Re: tunnel state
PostPosted: Mon Jan 31, 2011 11:16 pm 
Site Admin

Joined: Sun Jul 27, 2008 1:39 pm
Posts: 122
It is likely that the peer rejected your session. I notice that you do not specify a ppp username or password.

For problems like this, enable more debug and then check your system log files. Depending on your distro, openl2tp messages will appear in /var/log/daemon.log, /var/log/messages or some other place, depending on its syslog config.

To enable debug, set trace_flags in your default session and ppp profiles, e.g.

session profile modify profile_name=default trace_flags=all
ppp profile modify profile_name=default trace_flags=all


Top
 Profile  
 
 Post subject: Re: tunnel state
PostPosted: Sat Feb 05, 2011 4:17 pm 

Joined: Wed Jan 26, 2011 11:55 pm
Posts: 11
Hi,
thank you for your reply.

I didn't use the username and pass because I modified ppp profile default that require noauthentication(ppp profile modify profile_name=default auth_none=YES auth_none=YES)
I tried the debug but I don' see any changes in the log files when I try to establish the session.

A part of Openl2tp debug shows:
Code:
FSM: LNIC(47774/36638) state change: WAITCONNECT --> ESTABLISHED
sess 47774/36638: unable to open pppox socket: Protocol not supported
FSM: LNIC(47774/36638) event CLOSE_REQ in state ESTABLISHED
AVP: tunl 47774: building CDN message, 3 AVPs
PROTO: tunl 47774/36638: sending CDN to peer 59128/31707
XPRT: tunl 47774: queuing tx packet, type 14, len 36, ns/nr 4/7
XPRT: tunl 47774: update ns to 5
XPRT: tunl 47774: adding packet to ackq, type 14, len 36, ns/nr 4/7
DATA: TX: tunl 47774/31707: send 36 bytes to peer 10.51.0.16, packet ns/nr 4/7 type 14, retry 0
47774/36638: stopping unix pppd pid 4279
47774/36638: cleaning UNIX pppd context
FSM: LNIC(47774/36638) state change: ESTABLISHED --> IDLE
XPRT: RX: tunl 47774/0: len=12 ns/nr=7/5, our ns/nr=5/7, peer ns/nr=6/4
XPRT: tunl 47774: zlb ack received: ns/nr=7/5
XPRT: tunl 47774: peer ns/nr is 7/5
XPRT: tunl 47774: pkt 4/7 is acked by nr 5


I use ubuntu 10.04, kernel 2.6.32-28
Do you have any suggestion, what should I try to do to make it work ?


Last edited by romulus on Tue Feb 15, 2011 6:49 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: tunnel state
PostPosted: Thu Feb 10, 2011 6:40 pm 

Joined: Wed Jan 26, 2011 11:55 pm
Posts: 11
I have managed to make sessions to work but after a few seconds ubuntu completely freeze-up and need to be restarted.
Configuration that I have done:
Code:
peer profile modify profile_name=default tunnel_profile_name=default session_profile_name=default ppp_profile_name=default

tunnel profile modify profile_name=default auth_mode=none peer_profile_name=default session_profile_name=default max_sessions=10 trace_flags=all

session profile modify profile_name=default ppp_profile_name=default trace_flags=all 

ppp profile modify profile_name=default local_ipaddr=10.51.0.13 auth_none=YES trace_flags=all

I have tested on other computer and it has the same behavior.

Have you met with this situation ?


Top
 Profile  
 
 Post subject: Re: tunnel state
PostPosted: Sat Feb 12, 2011 12:58 am 

Joined: Wed Jan 26, 2011 11:55 pm
Posts: 11
Ok, l2tpv2 now works. The problem was that I used the same IP address on ppp interface and the ethernet interface and the computer froze completely

Now I am trying to make L2tpv3 tunnels. Is it completely implemented in the last version of Openl2tp ?

I found this link http://www.openl2tp.org/pipermail/openl ... 00836.html which explain a little how to implement L2tpv3 tunnels, any other advices are welcome.

Could someone explain me please, what exactly means managed and unmanaged tunnels?


Top
 Profile  
 
 Post subject: Re: tunnel state
PostPosted: Thu Feb 17, 2011 10:42 pm 

Joined: Wed Jan 26, 2011 11:55 pm
Posts: 11
I am trying to install l2tpv3tun but after the command
Code:
make KERNEL_HEADERS=/usr/src/linux-headers-2.6.35-25-generic/include

I receive this error
Quote:
cc -g -I/usr/src/linux-headers-2.6.35-25-generic/include -I. -MMD -Wall -Werror -DL2TP_CMD_ROOT=\"l2tpv3tun\" -c -o main.o main.c
main.c:33: fatal error: netlink/netlink.h: No such file or directory
compilation terminated.
make: *** [main.o] Error 1


what I am doing wrong here ? (I had kernel updated to the 2.6.35 version)


Top
 Profile  
 
 Post subject: Re: tunnel state
PostPosted: Sat Feb 19, 2011 7:52 pm 

Joined: Wed Jan 26, 2011 11:55 pm
Posts: 11
I had installed the last version libnl2-dev package and I use also the l2tpv3tun-0.2 but it returns always some errors :( Any idea ?

root@ubuntu:/home/romulus/Desktop/l2tpv3tun-0.2# make
cc -g -I. -MMD -Wall -Werror -DL2TP_CMD_ROOT=\"l2tpv3tun\" -c -o main.o main.c
cc1: warnings being treated as errors
main.c: In function ‘create_tunnel’:
main.c:132: error: passing argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type
/usr/include/netlink/netlink.h:53: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c:136: error: passing argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type
/usr/include/netlink/netlink.h:67: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c: In function ‘delete_tunnel’:
main.c:156: error: passing argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type
/usr/include/netlink/netlink.h:53: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c:160: error: passing argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type
/usr/include/netlink/netlink.h:67: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c: In function ‘create_session’:
main.c:208: error: passing argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type
/usr/include/netlink/netlink.h:53: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c:212: error: passing argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type
/usr/include/netlink/netlink.h:67: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c: In function ‘delete_session’:
main.c:233: error: passing argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type
/usr/include/netlink/netlink.h:53: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c:237: error: passing argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type
/usr/include/netlink/netlink.h:67: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c: In function ‘get_session’:
main.c:442: error: passing argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type
/usr/include/netlink/netlink.h:53: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c:446: error: passing argument 1 of ‘nl_recvmsgs’ from incompatible pointer type
/usr/include/netlink/netlink.h:63: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c:448: error: passing argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type
/usr/include/netlink/netlink.h:67: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c: In function ‘get_tunnel’:
main.c:490: error: passing argument 1 of ‘nl_send_auto_complete’ from incompatible pointer type
/usr/include/netlink/netlink.h:53: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c:494: error: passing argument 1 of ‘nl_recvmsgs’ from incompatible pointer type
/usr/include/netlink/netlink.h:63: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c:496: error: passing argument 1 of ‘nl_wait_for_ack’ from incompatible pointer type
/usr/include/netlink/netlink.h:67: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c: In function ‘do_ipl2tp’:
main.c:787: error: assignment from incompatible pointer type
main.c:793: error: passing argument 1 of ‘nl_connect’ from incompatible pointer type
/usr/include/netlink/netlink.h:45: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
main.c:798: error: passing argument 1 of ‘genl_ctrl_resolve’ from incompatible pointer type
/usr/include/netlink/genl/ctrl.h:30: note: expected ‘struct nl_sock *’ but argument is of type ‘struct nl_handle *’
make: *** [main.o] Error 1


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group