Date: Sun, 15 Jul 2001 16:42:42 +0200 From: "Daniel Chayvialle chez Wanadoo Cable, mail LaPoste" <daniel.chayvialle@laposte.net> To: questions@FreeBSD.org Subject: setting up a gateway Message-ID: <3B51ABE1.450B058F@laposte.net>
next in thread | raw e-mail | index | archive | help
Hi, I'm sorry but I cannot find how to set up a FreeBSD machine to act as a gateway between a local network and my cable ISP. I can't find enough infiormation in the various docs on the site. I've read the PPP and various related topics but to no avail. I'm trying to set a 482 DX2/66 (VLB, no PCI) with two ethernet boards (ep0 is a 3COM Etherlink 3 combo on which I use the BNC to link to my local 10b2/T hub; ed0 is an NE2000 compatible Peabird card with Realtek 8019 chip 10b2/T on which I use the RJ45 port to link to my cable modem) and not a lot of disk (I'm reusing an old computer to do this). I am trying to make so that I can link 2 PCs and a Macintosh Performa (later an amiga) on a local network with shared access to Internet (http, ftp and mail being the minimal requirements), printers, files, and as much other things as possible. I would also like the FreeBSD4.2-RELEASE box to serve as file and printer server, firewall, possibly DHCP server and other things (BTW what is the difference between a gateway and a router?) My ISP has DHCP and DNS servers (both on 62.161.120.3), and a default gateway whose IP addresse I know (thanks to winipcfg on my windows boxes, it is 62.161.72.1), but I can't figure out how to set up the lot. I have enabled the gateway option during installation, and have set up the nat to a minimal setup. Also, and this trouble just happened (up to now I could ping my isp form FreeBSD, but not from the local network, and ping inside the local network, and obviously could not access internet from the local network - I still have one machine directly connected on my cable modem, and perform the tries with another machine), I don't understand why on boot the system tells me that he has already detected other Ethernet addresses using the 192.168.1.1 IP address (arp messages). How is it possible as this address should be private and not seen outside? rc.conf: network_interfaces="ed0 ep0 lo0" ifconfig_ed0="DHCP" # with the new trouble, it is not configured any more ifconfig_ep0="inet 192.168.1.1 netmask 255.255.255.0" hostname="Datajet3com.27Vert" gateway_enable="YES" inetd_enable="YES" natd_enable="YES" natd_interface="ed0" natd_flags="-dynamic -redirect_port tcp 192.168.1.74:80 80" #this is one of the addresses I plan to give to on of the Windows boxes default_router="62.161.72.1" #that of my ISP, known from winipcfg. I get arplookup and arpresolve errors, telling me that thus it is not on the local network it cannot allocate llinfo /etc/hosts 127.0.0.1 localhost localhost.27vert 192.168.1.1 Datajet3com Datajet3com.27Vert 192.168.1.74 Athlon Athlon.27Vert /etc/rc.firewall #I don't use it yet [simple] oif="ed0" onet="62.161.79.0" omask="255.255.248.0" #know from winipcfg oip="62.161.79.43" #how to change this accoring to dhcp? iif="ep0" inet="192.168.1.0" imask="255.255.255.0" iip="192.168.1.1" I'm doing everything in console mode as I did not install the heavy X11 interface on this small machine. Also is it possible to resize partitions with a tool such as PartitionMagic (I'm willing to install more disk space when I find more inexpensive 400MB drives, thus might chnge the disk split)? There also is a SB card with Sony 2x proprietary CDRom and interface board that was not detected during set-up (I used a scsi cdrom drive). How can I make it work as it should be supported? What is the typical amount of space required for a FreeBSD bare setup according to the chosen option (X11, firewall, etc.)? Thanks a lot for your help Daniel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B51ABE1.450B058F>