FreeBSD 5.1 DSL:Bellnet HS Network Connection Set-up Problems

From: freebsder (freebsder51_at_yahoo.com)
Date: 06/22/04

  • Next message: Gustavo A. Baratto: "updating lots of servers"
    Date: Tue, 22 Jun 2004 11:01:20 -0700 (PDT)
    To: freebsd-newbies@freebsd.org, freebsd-isp@freebsd.org, freebsd-questions@freebsd.org, freebsd-net@freebsd.org
    
    

    <><><><>NETWORK CONFIG/SETUP: <><><><>

    +++ISP -> DSL(high-speed) -> Modem> FreeBSD51 server machine in at Gateway "vr0" (192.168.0.1)

    +++Freebsd machine LAN Interface at "ed0" (192.168.0.3) -> HUB

    +++HUB> 1) 192.168.0.2 - WinXP #1 machine 2) 192.168.0.3 - Freebsd machine in at "ed0" 3) 192.168.0.4 - Winxp #2 machine

    At the moment, I've just got the HUB connected to the freebsdmachine at "ed0" and will connect the others as soon as I get the server online.

    <><><><><>The PROBLEM:<><><><>

    I cannot get my server connected to the internet through the gateway. What am I doing wrong?

    <><><><><>RC.CONF:<><><><><><>

    font8x14="NO"

    font8x16="swiss-8x16"

    font8x8="swiss-8x8"

    inetd_enable="YES"

    linux_enable="YES"

    moused_enable="YES"

    moused_port="/dev/psm0"

    moused_type="auto"

    nfs_client_enable="YES"

    nfs_server_enable="YES"

    rpcbind_enable="YES"

    saver="rain"

    scrnmap="NO"

    usbd_enable="YES"

    ifconfig_vr0="DHCP"

    ifconfig_ed0="DHCP"

    ##initialise NIC

    network_interfaces="vr0 ed0 lo0 tun0"

    ifconfig tun0

    ifconfig vr0= "media 10baseT/UTP up"

    ifconfig_ed0="inet 192.168.0.3 netmask 255.255.0.0"

    #ifconfig_vr0="inet 192.168.0.1 netmask 255.255.0.0"

    #sendmail_enable="YES"

    hostname="myhostname"

    ##User ppp configuration

    ppp_enable="YES"

    ppp_mode="ddial"

    ppp_nat="NO"

    ppp_profile="bellnet"

    #ppp_user="root"

     

    ## Firewall

    gateway_enable="YES"

    firewall_enable="YES"

    firewall_type="SIMPLE"

    #firewall_quiet="NO"

    firewall_script="/etc/rc/firewall"

    natd_enable="YES"

    natd_interface="vr0"

    natd_flags="redirect_port tcp 192.168.0.3:80 80"

     

    rpc_statd_enable="YES"

    tcp_extensions="YES"

    <><><><><><>PPP.CONF:<><><><><><>

    default:

    # PPP over Ethernet

    set device PPPoE:vr0:bellnet

    set speed sync

    set mru 1492

    set mtu 1492

    set crtscts off

    # Monitor Line Quality

    disable lqr

    set log phase tun

    #ident user-ppp VERSION (built COMPILATIONDATE)

    #set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.255 0.0.0.0

    #set ifaddr 10.0.0.1/0 10.0.0.2/0

     

    #set accmap on

    #enable lqr

    #set timeout 0

    #set redial 0 0

    #NAT

    #nat enable yes

    #nat log yes

    #nat same_ports yes

    #nat unregistered_only yes

    #enable dns

    bellnet:

    set device PPPoE:vr0

    set authname myauthname

    set authkey myauthkey

    set dial

    set login

    set mtu 1492

    disable lqr

    set socket /tmp/ppp.sock 1234

    add default HISADDR

    <><><><><>SHELL DIALOGS: <><><><><>

    <>1<>

    # ppp -ddial -quiet bellnet

    Warning: Local: bind: Address already in use

    Warning: set socket: Failed 2

    <>2<>

    #ifconfig

    ed0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500

    inet 192.168.0.3 netmask 0xffff0000 broadcast 192.168.255.255

    inet6 fe80::280:c8ff:fede:c937%ed0 prefixlen 64 scopeid 0x1

    ether 00:80:c8:de:c9:37

    vr0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500

    inet6 fe80::20e:a6ff:fe9c:c81d%vr0 prefixlen 64 scopeid 0x2

    ether 00:0e:a6:9c:c8:1d

    media: Ethernet autoselect (100baseTX <full-duplex>)

    status: active

    lp0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> mtu 1500

    lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384

    inet6 ::1 prefixlen 128

    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4

    inet 127.0.0.1 netmask 0xff000000

    tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1492

    inet 65.92.***.*** --> 64.230.***.*** netmask 0xffffffff

    Opened by PID 250

    tun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500

    Opened by PID 741

    ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500

    tun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500

    Opened by PID 807

    tun3: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500

    Opened by PID 954

    <>3<>

    # netstat -rn

    Routing tables

    Internet:

    Destination Gateway Flags Refs Use Netif Expire

    default 64.230.***.*** UGSc 2 27 tun0

    64.230.***.*** 65.92.***.*** UH 3 15 tun0

    127.0.0.1 127.0.0.1 UH 0 135 lo0

    192.168.0/16 link#1 UC 0 0 ed0

    Internet6:

    Destination Gateway Flags Netif Expire

    ::1 ::1 UH lo0

    fe80::%ed0/64 link#1 UC ed0

    fe80::280:c8ff:fede:c937%ed0 00:80:c8:de:c9:37 UHL lo0

    fe80::%vr0/64 link#2 UC vr0

    fe80::20e:a6ff:fe9c:c81d%vr0 00:0e:a6:9c:c8:1d UHL lo0

    fe80::%lo0/64 fe80::1%lo0 Uc lo0

    fe80::1%lo0 link#4 UHL lo0

    ff01::/32 ::1 U lo0

    ff02::%ed0/32 link#1 UC ed0

    ff02::%vr0/32 link#2 UC vr0

    ff02::%lo0/32 ::1 UC lo0

    ff02::%tun0/32 fe80::280:c8ff:fede:c937%tun0 UC tun0

    ff02::%tun1/32 fe80::280:c8ff:fede:c937%tun1 UC tun1

    ff02::%tun2/32 fe80::280:c8ff:fede:c937%tun2 UC tun2

    ff02::%tun3/32 fe80::280:c8ff:fede:c937%tun3 UGS tun3

    <>4<>

    # ppp

    Working in interactive mode

    Using interface: tun4

    ppp ON thor> show physical

    Name: deflink

    State: closed

    Device: N/A

    Link Type: interactive

    Connect Count: 0

    Queued Packets: 0

    Phone Number: N/A

    Defaults:

    Device List: "PPPoE:vr0:bellnet"

    Characteristics: sync, cs8, no parity, CTS/RTS off

    CD check delay: device specific

    Connect time: 0:00:00

    0 octets in, 0 octets out

    0 packets in, 0 packets out

    Overall 0 bytes/sec

    ppp ON thor> dial

    ppp ON thor> Warning: Sending empty PAP authname!

    Ppp ON thor> Warning: Sending empty PAP authname!

    Warning: Sending empty PAP authname!

    ppp ON thor> dial bellnet

    Warning: Local: bind: Address already in use

    Warning: set socket: Failed 2

    ppp ON thor>

    Ppp ON thor>

    PPp ON thor> Warning: iface add: ioctl(SIOCAIFADDR, 67.70.89.*** -> 64.230.254.***): File exists

    Error: ipcp_InterfaceUp: unable to set ip address

     

    <><><><><><> OTHER TWEAKS <><><><><>:

    <>1<>

    Some one who was trying to help me earlier mentioned that for a network setup I need the following: in /usr/local/etc/rc.d/natd.sh !#/bin/sh

    sbin/natd -u -m -s -n tun0 -redirect_address 192.168.x.x public_address

    in order for someone to get to my boxes from outside my local network. So I have a file called natd.sh in my system but I have not put in values for -redirect_address or public_address yet as I am not sure what they are suppose to mean.

    <>2<>
    Someone told me to change rc.firewall but I don't think the set-up it correct. I'm not sure if I should be using "tun0" or "vr0" and I think that my onet and inet are not configured properly ... how should this be configured given my topology?

    ############

    # This is a prototype setup for a simple firewall. Configure this

    # machine as a named server and ntp server, and point all the machines

    # on the inside at this machine for those services.

    ############

    # set these to your outside interface network and netmask and ip

    #oif="ed0"

    #onet="192.0.2.0"

    #omask="255.255.255.240"

    #oip="192.0.2.1"

    #THE ABOVE FOUR LINES ARE THE ORIGINAL

    #THE FOUR LINES BELOW ARE NEW

    oif="tun0"

    onet="192.168.0.3"

    omask="255.255.255.x"

    oip=""

     

    # set these to your inside interface network and netmask and ip

    #iif="ed1"

    #inet="192.0.2.16"

    #imask="255.255.255.240"

    #iip="192.0.2.17"

    #THE ABOVE FOUR LINES ARE THE ORIGINAL

    #THE FOUR LINES BELOW ARE NEW

    iif="ed0"

    inet="192.168.0.0"

    imask="255.255.255.0"

    iip="192.168.0.1"

    setup_loopback

    <><><><><>

    Help!

    Thanks in advance.

    <><><><><>

                    
    ---------------------------------
    Do you Yahoo!?
    Yahoo! Mail - 50x more storage than other providers!
    _______________________________________________
    freebsd-isp@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-isp
    To unsubscribe, send any mail to "freebsd-isp-unsubscribe@freebsd.org"


  • Next message: Gustavo A. Baratto: "updating lots of servers"

    Relevant Pages

    • FreeBSD 5.1 DSL:Bellnet HS Network Connection Set-up Problems
      ... I've just got the HUB connected to the freebsdmachine at "ed0" and will connect the others as soon as I get the server online. ... #nat enable yes ... Warning: Local: bind: Address already in use ... ppp ON thor> show physical ...
      (freebsd-net)
    • FreeBSD 5.1 DSL:Bellnet HS Network Connection Set-up Problems
      ... I've just got the HUB connected to the freebsdmachine at "ed0" and will connect the others as soon as I get the server online. ... #nat enable yes ... Warning: Local: bind: Address already in use ... ppp ON thor> show physical ...
      (freebsd-newbies)
    • FreeBSD 5.1 DSL:Bellnet HS Network Connection Set-up Problems
      ... I've just got the HUB connected to the freebsdmachine at "ed0" and will connect the others as soon as I get the server online. ... #nat enable yes ... Warning: Local: bind: Address already in use ... ppp ON thor> show physical ...
      (freebsd-questions)
    • Re: False Alert - AD database restored by unsupported procedure.
      ... I still believe this is not the cause of our USN rollback ... And there are more than one DCs in this location. ... believe if this warning caused the USN ... DNS entries for this DC cannot be verified right now on DNS server ...
      (microsoft.public.windows.server.active_directory)
    • [NT] Merak Webmail Server Multiple Vulnerabilities
      ... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... Webmail Server has been found to contain multiple vulnerabilities ranging ... Warning: reset: Passed variable is not an array or object in C:\Archivos ... Warning: mktime: Windows does not support negative values for this ...
      (Securiteam)