From owner-freebsd-questions Sat Mar 2 16:47:37 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id QAA28400 for questions-outgoing; Sat, 2 Mar 1996 16:47:37 -0800 (PST) Received: from kanin.arnes.si (kanin.arnes.si [193.2.1.66]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id QAA28395 for ; Sat, 2 Mar 1996 16:47:34 -0800 (PST) Received: from cmir.arnes.si by kanin.arnes.si with SMTP using DNS (PP) id <14128-0@kanin.arnes.si>; Sun, 3 Mar 1996 01:47:31 +0100 Received: from localhost.arnes.si (localhost.arnes.si [127.0.0.1]) by cmir.arnes.si (8.7.4/8.6.10) with SMTP id BAA22431 for ; Sun, 3 Mar 1996 01:47:30 +0100 (MET) Message-Id: <199603030047.BAA22431@cmir.arnes.si> To: questions@freebsd.org Subject: weird problem with dual-homed machine (ppp link aand ethernet) Date: Sun, 03 Mar 1996 01:47:29 +0100 From: Tomaz Borstnar Sender: owner-questions@freebsd.org Precedence: bulk Hello! I need to set up a FreeBSD box as dial-on-demand router and general internet box. Machine has one 3com ethernet card and one V.34 modem for ppp to my provider. Since we don't need full C class our provider assigned us small block out of full C class 193.2.52.129 to 193.2.52.159 with netmask 255.255.255.224. I set 3com card as 193.2.52.129 with command: ifconfig ep0 inet 193.2.52.129 netmask 255.255.255.224 and added gateway=YES to /etc/sysconfig. I fixed ppp (user ppp) to run as dial-on-demand and it works OK from BSD box, but I can't force the box to route packets from ethernet to PPP link. Machine can reach FreeBSD box on ethernet - I used freebsd box as www-proxy and it works correctly. It just won't work as router. I even added options GATEWAY to kernel config, but no luck. I use FreeBSD-stable. Tomaz p.s. Please mail me directly. Thanks ---- Tomaz Borstnar