OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Claudio Jeker (cjekeree.ethz.ch)
Date: Fri Feb 02 2001 - 01:06:14 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Ha all,

    I have configured /dev/tun0 to send all packets to 192.168.2.2 to a
    userland application (Simulator).

    > ifconfig tun0 inet 192.168.2.1 192.168.2.2 up mtu 1500
    > sudo route add -host 192.168.2.2 -interface 192.168.2.1

    > ifconfig tun0
    tun0: flags=50<POINTOPOINT,RUNNING> mtu 1500
            inet 192.168.2.1 --> 192.168.2.2 netmask 0xffffff00
    > netstat -rn -f inet | grep tun0
    192.168.2.2 192.168.2.1 UHS 0 0 1500 tun0

    My problem is I can "ping 192.168.2.2" and I see how the traffic goes to
    the userland applications. I see also the replies comming back but somehow
    OpenBSD does not accept the 192.168.2.1 as a local address.
    (ping -I 127.0.0.1 192.168.2.2 does work)

    Also a ping 192.168.2.1 gives no response.

    Any ideas what went wrong?

    -- 
    :wq Claudio