From owner-freebsd-questions@FreeBSD.ORG Fri Jul 21 11:39:16 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7529916A4DE for ; Fri, 21 Jul 2006 11:39:16 +0000 (UTC) (envelope-from levchenko.i@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id E097843D46 for ; Fri, 21 Jul 2006 11:39:14 +0000 (GMT) (envelope-from levchenko.i@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so1294414uge for ; Fri, 21 Jul 2006 04:39:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ECUJ3QeoiEFsw0r5Ow/gHUVVPf7M2ytA3BpE9kWJSxG81Nj/w3fNfKzINGNfAXMDQJkriYf1K76caDfzKtJaxIJeHxjTNpS/WWpKhK/xC2gQUcVVro0EuBQNPIdV7WDwOfjHa1bVaSHTu01HeVbm+S2Reo4kgyFIl+ASVHdRT/E= Received: by 10.78.151.3 with SMTP id y3mr291297hud; Fri, 21 Jul 2006 04:39:13 -0700 (PDT) Received: by 10.78.118.5 with HTTP; Fri, 21 Jul 2006 04:39:13 -0700 (PDT) Message-ID: Date: Fri, 21 Jul 2006 14:39:13 +0300 From: "Ivan Levchenko" To: freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Fwd: pppNAT woes =( X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2006 11:39:16 -0000 ---------- Forwarded message ---------- From: Ivan Levchenko Date: Jul 21, 2006 2:26 PM Subject: Re: pppNAT woes =( To: fbsd@a1poweruser.com Internet works on all of them when i connect via pppoeconf and pon dsl-provider in linux and ppp -ddial n freebsd or via a windows connection. To connect on each box, i have to enter my username and password. Thats why i want to connect to the internet on my freebsd box and then have the windows computers connect through it via the internet. Is it even possible to do it with this kind of lan configuration: (internet)------>(switch)-----(three computers connected to the switch) (instead of internet, there probably should be an adsl modem, but i don't have access to it, nor do i know its IP address, so it doesn't matter) right now, i have acccess from any of the computers if i *connect*, but that eliminates the possiblity for my three computers to use the same connection at the same time. On 7/21/06, fbsd wrote: > You say that in current configuration you can get on internet from > all 3 pc's at same time, this means your ADSL modem is already > performing NAT function for you. There is no need to do NAT on > FreeBSD box unless you want to run one of the 3 FreeBSD firewalls to > protect your LAN. In that case you will have to get additional NIC > card and cable like explained in previous post. Adding NAT to your > FreeBSD box using your current cable layout will not work as you > have all ready found out. Your current network is cabled together > wrong for that to work. How LAN is cabled is too large of subject to > explain here. Use google and search internet for 'LAN hardware > config'. > The FreeBSD install guide covers building simple home LAN in detail. > www.a1poweruser.com > > > -----Original Message----- > From: Ivan Levchenko [mailto:levchenko.i@gmail.com] > Sent: Friday, July 21, 2006 6:22 AM > To: fbsd@a1poweruser.com > Subject: Re: pppNAT woes =( > > > Its a little bit different. I can power up all the pc's at the same > time. > > Is it possible to get it working without two ethernet cards? > > currently, the internet connection works from any computer, but I > would like to get it go through my freebsd box without rebuilding > the > lan. > > On 7/21/06, fbsd wrote: > > If your saying that in your current network configuration you can > > only power up and use one of the 3 PC's on the switch at a time? > > That you can not use all 3 pc's at the same time? > > > > If that is correct. Then you need to cable the FreeBSD pc direct > to > > the ADSL cable like the switch is now. Then add a second LAN card > to > > the FreeBSD box and cable it to the input port on the switch. > Switch > > stays cabled to the 2 window pc's. > > > > Add gateway_enable="YES" and ifconfig_xl0="inet 10.0.10.2" to > > rc.conf, You can install dhcp server to auto assign ip address to > > pc's on LAN or manually assign un-routable ip address in each > > windows network window. > > > > > > > > -----Original Message----- > > From: owner-freebsd-questions@freebsd.org > > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Ivan > > Levchenko > > Sent: Thursday, July 20, 2006 9:27 PM > > To: freebsd-questions@freebsd.org > > Subject: pppNAT woes =( > > > > > > Hello All, > > > > Internet adsl - PPPoE. ( i don't have access to the router/modem) > > > > Current setup: > > > > One ethernet cord that I got from the ISP that is connected to a > > switch > > three computers (one freebsd and 2 windows) connected to the same > > switch > > > > I am able to connect to the internet from any of my boxes. I want > to > > setup a pppnat on freebsd so that all of my computers can use the > > same > > connection. > > > > When i connect from freebsd, internet works, but when i add the ip > > address of my freebsd box as the default gateway to the connection > > in > > windows, it doesn't work. Here are my configs: > > > > /etc/ppp/ppp.conf > > > > default: > > #set log Phase tun command # you can add more detailed logging > if > > you wish > > #set ifaddr 0.0.0.0 0.0.0.0 > > set log Phase Chat LCP IPCP CCP tun command > > wp: > > set device PPPoE:rl0 # replace xl1 with your Ethernet device > > set authname #### > > set authkey #### > > #set dial > > set ctsrts off > > #set login > > add default HISADDR > > #enable dns > > set mru 1492 > > set mtu 1492 > > set timeout 0 > > set redial 0 0 > > enable lqr > > > > /etc/rc.conf > > font8x14="cp866-8x14" > > font8x16="cp866b-8x16" > > font8x8="cp866-8x8" > > #gateway_enable="YES" > > hostname="proxy1" > > ifconfig_rl0="inet 192.168.0.236 netmask 255.255.255.0" > > inetd_enable="YES" > > keymap="ru.koi8-r" > > linux_enable="YES" > > mousechar_start="3" > > scrnmap="koi8-r2cp866" > > sshd_enable="YES" > > usbd_enable="YES" > > #We do not need sendmail > > sendmail_enable="NO" > > #PPP nat enable > > ppp_enable="YES" > > ppp_mode="ddial" > > ppp_nat="YES" > > ppp_profile="wp" > > ppp_user="root" > > > > /boot/loader.conf > > ng_UI_load="YES" > > ng_ether_load="YES" > > ng_ppp_load="YES" # PPP protocol netgraph node type > > ng_pppoe_load="YES" # RFC 2516 PPPOE protocol netgraph node > > type > > ng_socket_load="YES" > > > > custom kernal: > > machine i386 > > cpu I686_CPU > > ident MYKERNEL > > > > > > makeoptions DEBUG=-g # Build kernel with gdb(1) > > debug symbols > > > > options SCHED_ULE # ULE scheduler > > options PREEMPTION # Enable kernel thread > > preemption > > options INET # InterNETworking > > options FFS # Berkeley Fast Filesystem > > options SOFTUPDATES # Enable FFS soft updates > > support > > options UFS_ACL # Support for access > control > > lists > > options UFS_DIRHASH # Improve performance on > big > > directories > > options MD_ROOT # MD is a potential root > > device > > options NFSCLIENT # Network Filesystem > Client > > options NFSSERVER # Network Filesystem > Server > > options NFS_ROOT # NFS usable as /, > requires > > NFSCLIENT > > options MSDOSFS # MSDOS Filesystem > > options CD9660 # ISO 9660 Filesystem > > options PROCFS # Process filesystem > > (requires PSEUDOFS) > > options PSEUDOFS # Pseudo-filesystem > > framework > > options GEOM_GPT # GUID Partition Tables. > > options COMPAT_43 # Compatible with BSD 4.3 > > [KEEP THIS!] > > options COMPAT_FREEBSD4 # Compatible with FreeBSD4 > > options COMPAT_FREEBSD5 # Compatible with FreeBSD5 > > options SCSI_DELAY=5000 # Delay (in ms) before > > probing SCSI > > options KTRACE # ktrace(1) support > > options SYSVSHM # SYSV-style shared memory > > options SYSVMSG # SYSV-style message > queues > > options SYSVSEM # SYSV-style semaphores > > options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B > > real-time > > extensions > > options KBD_INSTALL_CDEV # install a CDEV entry in > > /dev > > options AHC_REG_PRETTY_PRINT # Print register bitfields > > in debug > > # output. Adds ~128k to > > driver. > > options AHD_REG_PRETTY_PRINT # Print register bitfields > > in debug > > # output. Adds ~215k to > > driver. > > options ADAPTIVE_GIANT # Giant mutex is adaptive. > > > > device apic # I/O APIC > > > > device eisa > > device pci > > > > device fdc > > > > device ata > > device atadisk # ATA disk drives > > device ataraid # ATA RAID drives > > device atapicd # ATAPI CDROM drives > > device atapifd # ATAPI floppy drives > > device atapist # ATAPI tape drives > > options ATA_STATIC_ID # Static device numbering > > device atapicam > > > > > > > > device scbus # SCSI bus (required for SCSI) > > device ch # SCSI media changers > > device da # Direct Access (disks) > > device cd # CD > > device pass # Passthrough device (direct SCSI > > access) > > device ses # SCSI Environmental Services (and > > SAF-TE) > > > > > > > > device atkbdc # AT keyboard controller > > device atkbd # AT keyboard > > device psm # PS/2 mouse > > > > device kbdmux # keyboard multiplexer > > > > device vga # VGA video card driver > > > > > > device sc > > > > > > device agp # support several AGP chipsets > > > > device pmtimer > > > > device cbb # cardbus (yenta) bridge > > device pccard # PC Card (16-bit) bus > > device cardbus # CardBus (32-bit) bus > > > > device sio # 8250, 16[45]50 based serial > ports > > > > device ppc > > device ppbus # Parallel port bus (required) > > device lpt # Printer > > device plip # TCP/IP over parallel > > device ppi # Parallel port interface device > > > > > > > > device miibus # MII bus support > > device re # RealTek 8139C+/8169/8169S/8110S > > device rl # RealTek 8129/8139 > > > > > > device wlan # 802.11 support > > > > device loop # Network loopback > > device random # Entropy device > > device ether # Ethernet support > > device sl # Kernel SLIP > > device ppp # Kernel PPP > > device tun # Packet tunnel. > > device pty # Pseudo-ttys (telnet etc) > > device md # Memory "disks" > > device gif # IPv6 and IPv4 tunneling > > device faith # IPv6-to-IPv4 relaying > > (translation) > > > > device bpf # Berkeley packet filter > > > > device uhci # UHCI PCI->USB interface > > device ohci # OHCI PCI->USB interface > > device ehci # EHCI PCI->USB interface (USB > 2.0) > > device usb # USB Bus (required) > > device ugen # Generic > > device uhid # "Human Interface Devices" > > device ukbd # Keyboard > > device ulpt # Printer > > device umass # Disks/Mass storage - Requires > > scbus and da > > device ums # Mouse > > > > > > Please help me out with this.. I really need it to run on freebsd. > > > > Thanks to all in advance. > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to > > "freebsd-questions-unsubscribe@freebsd.org" > > > > > >