routing and wireless security

From: Benedict Verheyen (linux4bene_at_pandora.be)
Date: 03/13/04

  • Next message: Joey Hess: "Re: Permission change - recursive"
    To: <debian-user@lists.debian.org>
    Date: Sat, 13 Mar 2004 19:00:41 +0100
    
    

    Hi,

    I just got my wireless network up and running:
    cablemodem attached to a DLink DI-624+ that gets an ip from my isp in
    the range 81.x.x.x and an internal ip 192.168.0.3.
    When my network was still wired, i used a gateway server with 2 nics
    to do the same as the router. Now eth0 of that server has the
    ip 192.168.0.2 and eth1 has ip 192.168.0.2. So only eth0 changed
    from having the external ip from my isp to a local one.

    Connected to the eth0 is a wireless Dlink brdige (DWL-810+) with an
    ip of 192.168.0.4. eth1 is connected to a hub and on that hub, i've
    connected my pc with an ip of 192.168.0.10 that gets assigned via DHCP
    from the gateway server.
    Almost everything seems to work except for some details.
    This is the routing table of the gateway server:

    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use
    Iface
    192.168.0.3 * 255.255.255.255 UH 0 0 0 eth0
    192.168.0.4 * 255.255.255.255 UH 0 0 0 eth0
    192.168.0.0 129.168.0.1 255.255.255.0 U 0 0 0 eth1
    default 192.168.0.3 0.0.0.0 UG 0 0 0 eth0

    This is my interfaces config
    # /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

    # The loopback interface
    auto lo
    iface lo inet loopback

    # The first network card - this entry was created during the Debian
    installation
    auto eth0
    iface eth0 inet static
    address 192.168.0.2
    network 192.168.0.0
    netmask 255.255.255.0
    broadcast 192.168.0.255
    gateway 192.168.0.3

    auto eth1
    iface eth1 inet static
    address 192.168.0.1
    network 192.168.0.0
    netmask 255.255.255.0
    broadcast 192.168.0.255

    As for my questions:
    1. ROUTING
    I had to change the interfaces file to assign a static ip for eth0
    instead
    of obtaining an ip from my isp via DHCP.
    So now i use eth0 to access the internet (via wireless bridge to
    wireless
    router) and eth1 to server the LAN where my computer is connected.
    I can ping the router,the bridge, the net and my pc from the gateway
    server
    so everything seems ok here.
    But when i restart the server (or restart the networking), i get 2 of
    the
    same lines for the routes:
    192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
    192.168.0.0 * 255.255.255.0 U 0 0 0 eth1

    1.a. The first rule isn't correct. I now manually deleted it. How can i
    change this so that it doesn't appear in my routing tables when i
    restart?
    eth0 should be used for internet traffic and eth1 for LAN traffic.
    Because it does appear, i suspect something is wrong in my interfaces
    file.

    1.b. I also had to add 2 rules to the routing table in order to be able
    to access both the router and the bridge from my server. I'm not sure
    if they are correct but they do appear to work. Same question as above:
    how do i make these changes permanent?
    Weird thing was that i wasn't able to provide a subnet mask
    255.255.255.0
    for the router or brdige route.

    1.c.
    My pc can ping the net and the gateway server but not the router or the
    bridge.
    This is inconvenient because i would want to manage those from my pc.
    Both pinging or starting the webinterface fails. I do not see anything
    in my
    logs that would suggest that it's a iptables firewall problem. Even if i
    flush
    the rules and set the default policy to accept, nothing happens.
    192.168.0.1 is set as gateway for my pc and since i get the ip via DHCP,
    both
    DNS servers are the same as on the server and work (i can ping via a
    name)

    2. DDTC (Dynamic Dns)
    I used a script that send my public ip back to http://www.ddts.net where
    i
    had a hostname associated with my server. Now my router has that
    external
    ip and not my gateway server. The router has support for Dynamic DNS but
    the
    manual doesn't say which Dynamic DNS service it supports. Is there a way
    to retrieve the public ip from the router on my gateway server?
    If this was possible, i could still send my public ip back via a cron
    job and
    by using the client program provided by the ddts service.

    3. Security router.
    I saw i can set a key for WEP. Is that key something you have to invent
    yourself? Is there a link that explains how you should set these things
    and maybe has some general info on security for wireless stuff?

    Thanks,
    Benedict

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Joey Hess: "Re: Permission change - recursive"

    Relevant Pages

    • Re: Connection from remote computer to network SQL Server
      ... There is no firewall on the W2K machine acting as the SQL server. ... I tried making the SQL machine a "trusted" on the router. ... connection works. ... To find the IP address of your computer inside the network, ...
      (microsoft.public.access.adp.sqlserver)
    • Re: Still cant connect to RWW or OWA remotely
      ... laptop plugged into port on DSL router. ... service, e-mail, and RWW is available to all users on the network. ... The server is a SBS2003 SP1 Standard box without ISA, ... of the two NICs by clicking the Advanced tabs, it won't open that box, ...
      (microsoft.public.windows.server.sbs)
    • Re: Firewall and ISA
      ... Linksys uses NAT to protect you, claiming it's a firewall, but NAT is ... Full access to the network for maintenance, remotely, over a VPN, so ... dedicated server (meaning that ISA is not certified on a non-dedicated ... Are you saying that in addition to the ISA i need to get a new router? ...
      (microsoft.public.windows.server.sbs)
    • Re: Problems accessing SBS 2003 Welcome screen from Internet
      ... In the router, I opened the ports that you ... Ethernet adapter Server Local Area Connection: ... Ethernet adapter Network Connection: ...
      (microsoft.public.windows.server.sbs)
    • Re: Networking Question - VLANs on SBS 2003 Premium SP1
      ... be sure you do not enable any DHCP server in internal network. ... You do not get any issue when you connect the SBS to the old router, ... On the Connection Type page, click Broadband, and then click Next. ...
      (microsoft.public.windows.server.sbs)