Re: [Going nuts] Can't share the connection to the Internet

From: Mike Todd (MikeTodd_at_miketodd.com)
Date: 07/31/04


Date: Sat, 31 Jul 2004 17:26:16 GMT

Have you configured and re-compiled your FreeBSD kernel to support NAT?

Kernel configuration is covered in chapter 8 of the FreeBSD Handbook
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html) and
NAT is covered in chapter 24
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html
)

I use dual network interface cards, one for the NAT network and one for the
Internet. What you are trying to do is have your LAN on the NAT network and
your Internet on the PPPoE connection.

If the kernel is not configured and re-compiled, the entries in the rc.conf
and other files will not be able to use NAT because the kernel will not have
the ability to support those settings.

-- 
Mike Todd
President, Mike Todd Associates - www.MikeTodd.com
Supporting the Digital Coast
President, Internet Society Los Angeles Chapter - www.ISOC-LA.org
Center for Entrepreneurship and Technology Law
Pepperdine University School of Law - mltodd@pepperdine.edu
Technology Expert Witness - ExpertWitness@miketodd.com
--
"The Yeti" <goatravellers@yahoo.com> wrote in message
news:87108f20.0407301103.4890aea8@posting.google.com...
It's been since monday that I'm trying to share the connection to the
Internet.
I have this FreeBSD computer connected to the Internet (PPPoE), with
NAT, and I have other computers connected to it through a hub.
Each computer pings well the FreeBSD machine. But it can't ping
google. I tryed all configuration that I thought about, and read
enough man pages and forum threads. Here are some infos:
/etc/rc.conf
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="internet"
ppp_nat="YES"
gateway_enable="YES"
#firewall_script="/etc/rc.firewall"
#firewall_enable="YES"
#firewall_type="OPEN"
natd_enable="YES"
natd_interface="tun0"
natd_flags=""
hostname="branquinho.network"
ifconfig_rl0="192.168.0.1/24"
ifconfig_sk0="192.168.1.1/24"
inetd_enable="YES"
keymap="br275.iso.acc"
linux_enable="YES"
moused_enable="YES"
sshd_enable="YES"
usbd_enable="YES"
/etc/ppp/ppp.conf
default:
        enable dns
        set ifaddr 0 0
internet:
        allow users charles
        set device PPPoE:rl0
        set authname    whatever
        set authkey     whatever
        add default HISADDR
/etc/hosts
:1                     localhost.network localhost
127.0.0.1               localhost.network localhost
192.168.0.1             branquinho.network branquinho
192.168.1.1             branquinho.network branquinho
192.168.0.3             cinza.network   cinza
branquinho# ifconfig
fwe0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        ether 02:e0:18:26:ba:11
        ch 1 dma -1
sk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::20c:6eff:fe74:3371%sk0 prefixlen 64 scopeid 0x2
        ether 00:0c:6e:74:33:71
        media: Ethernet autoselect (100baseTX
<full-duplex,flag0,flag1>)
        status: active
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=8<VLAN_MTU>
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::208:54ff:fe10:80b2%rl0 prefixlen 64 scopeid 0x3
        ether 00:08:54:10:80:b2
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492
        inet 200.193.168.220 --> 200.103.132.254 netmask 0xffffffff
        Opened by PID 217
I can ping Google from this FreeBSD machine, but not from other
machines of the LAN. From other PCs, I can only ping local machines.
Thanks,
Charles.


Relevant Pages

  • Re: 5.3 interrupt storm (atapicam) and I/O error
    ... attached you will find a copy of my custom kernel ... config which did work without any issue under FreeBSD ... The following hardware configuration *won't* cause ... * harddrive attached to IDE channel #1 ...
    (freebsd-questions)
  • Re: OT - Quagga/CARP
    ... afaik the freebsd userland tools can't get the route-setting done eiter. ... when an alternate route for the same prefix is in the kernel route table. ... the zebra and ospf processes entirely for them to pick things up ... interface configuration and routing driven out of Quagga. ...
    (freebsd-net)
  • Re: HEADS UP: Audit integration into CVS in progress, some tree disruption
    ... Which would ruin their>> experience and/or opinion of FreeBSD in general. ... > mac -- Mandatory Access Control> ... > - Dependence on defining "options EXPERIMENTAL" in the kernel configuration> file -- if the kernel isn't compiled with the EXPERIMENTAL option, ...
    (freebsd-current)
  • Re: 7.2 RELEASE ? Buggy as hell
    ... on an amd64 on an ACER Travelmate 4400 running at 1600mhz. ... configuration file is the default built-in... ... FreeBSD is not the right tool for you. ... GIANT locking in favor of fine grained kernel locks as the main design change. ...
    (freebsd-questions)
  • Re: [Going nuts] Cant share the connection to the Internet
    ... Yes I have NAT enabled (I recompiled the kernel with support wot ... > Kernel configuration is covered in chapter 8 of the FreeBSD Handbook ...
    (comp.unix.bsd.freebsd.misc)