netgraph problem?

Nikos Vassiliadis nvass at teledome.gr
Wed Nov 24 07:36:43 PST 2004


Hello all,

I am using netgraph-based pptp and I am having this problem.
It seems that there is a problem binding to INADDR_ANY or
doing a single connect(2). 

My source address is given and everything works correctly:
>>>>root:zuper:0:~# telnet -s X.X.137.252 X.X.137.252 22
>>>>Trying X.X.137.252...
>>>>Connected to ppp-dsl-252....
>>>>Escape character is ^].
>>>>SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419
>>>>
>>>>Protocol mismatch.
>>>>Connection closed by foreign host.

My source address is not given and that's what happens:
>>>>root:zuper:0:~# telnet X.X.137.252 22
>>>>Trying X.X.137.252...
>>>>telnet: connect to address X.X.137.252: Network is unreachable
>>>>telnet: Unable to connect to remote host

The problem appears only to the ng interface. The problem appears with
other netgraph nodes(/usr/share/example/udp.tunnel for example).
It is working correctly on 4.10-RELEASE. Any clues from any experienced 
netgraph user or hacker? 

Thanks in advance, Nikos

Other info:

root:zuper:0:~# uname -a
FreeBSD zuper.duper 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Wed Nov 24 13:55:12 
EET 2004     root at zuper.duper:/usr/src/sys/i386/compile/ZUPER  i386

Interfaces
root:zuper:0:~# ifconfig 
lnc0: flags=108843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.1.149 netmask 0xffffff00 broadcast 192.168.1.255
        ether 00:0c:29:1d:4b:c6
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000 
ng0: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> mtu 1500
        inet X.X.137.252 --> X.X.128.70 netmask 0xffffffff 

Netgraph configuration
root:zuper:0:~# kldstat 
Id Refs Address    Size     Name
 1    9 0xc0400000 311594   kernel
 2    1 0xc1350000 5000     ng_socket.ko
 3    7 0xc135d000 12000    netgraph.ko
 4    1 0xc136f000 4000     ng_iface.ko
 5    1 0xc1373000 8000     ng_ppp.ko
 6    1 0xc137b000 4000     ng_bpf.ko
 7    1 0xc137f000 5000     ng_vjc.ko
 8    1 0xc1385000 5000     ng_pptpgre.ko
 9    1 0xc1394000 5000     ng_ksocket.ko


More information about the freebsd-questions mailing list