[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dev tun0 and ping
- To: misc@openbsd.org
- Subject: dev tun0 and ping
- From: Claudio Jeker <cjeker@ee.ethz.ch>
- Date: Fri, 2 Feb 2001 08:06:14 +0100
- Content-Disposition: inline
- Mail-Followup-To: Claudio Jeker <cjeker@ee.ethz.ch>, misc@openbsd.org
- User-Agent: Mutt/1.2.4i
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