Results 1 to 4 of 4

Thread: routing with one physical interface

  1. #1
    Join Date
    May 2012
    Beans
    33

    routing with one physical interface

    Hi,

    i would like todo some traffic shaping experiments, for this i need a "real" linux instead of my openwrt router.

    do keep things simple i was thinking about letting openwrt handle dhcp/dns and just tell the "new linux" todo routing.
    openwrt's dnsmasq tells the clients via dhcp option 3 that "new linux" is the router.

    but so far my client only sends data to "new linux" but does not get packages back?

    to enable routing i enabled forwarding on "new linux".
    "new linux" is on 192.168.11.171, openwrt is on 192.168.11.1

    is it possible todo routing with only one real interface on the new linux box?



    someone from #openwrt@freenode told me that i need to disable icmp redirects for this.
    (or the hosts would figure out that the new router is not the shortest way to the internet and route traffic differently)

    found these command that probably worked:

    Code:
    sysctl -w net.ipv4.conf.all.accept_redirects=0
     sysctl -w net.ipv4.conf.all.send_redirects=0
    sysctl -w net.ipv4.conf.eth0.send_redirects=0
    after entering the above command on the "new linux" ping from clients to hosts on the internet did no longer show a icmp redirect message.
    Last edited by KisteBecks; December 11th, 2012 at 08:29 PM.

  2. #2
    Join Date
    May 2012
    Beans
    33

    Re: routing with one physical interface

    afrer reading some more i come to the conclusion that you really do need two subnets for routing.
    hopefully my unmanaged switch can handle two subnets

  3. #3
    Join Date
    Aug 2008
    Location
    WA
    Beans
    2,186
    Distro
    Ubuntu

    Re: routing with one physical interface

    Create a sub-interface on a separate subnet.

    I have done firewall'ing though a single interface box this way..

  4. #4
    Join Date
    May 2012
    Beans
    33

    Re: routing with one physical interface

    ah, thats interresting. thx

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •