Results 1 to 5 of 5

Thread: How to stop internet access from eth1?

  1. #1
    Join Date
    Jan 2006
    Location
    Australia
    Beans
    475
    Distro
    Lubuntu 13.04 Raring Ringtail

    How to stop internet access from eth1?

    Hi All,

    I have a bit of a "unique" situation here. I have myself plugged into two networks - since we run two networks here at work (long story, we merged and never combined them due to two different companies) and want to block ALL internet access off eth1, and only have it off eth0.

    I only want traffic from 192.168.67.1-192.168.67.255 allowed on eth1, but everything allowed on eth0.

    Or is there a way for the internet/applications to be on eth0 instead of eth1? Would I use iptables or something?

  2. #2
    Join Date
    Aug 2007
    Location
    Karma BC
    Beans
    1,215
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to stop internet access from eth1?

    would that be something along the lines of
    sudo ifdown eth1
    or, right-click the network icon, select "edit connections" and remove/edit eth0 or eth1
    Last edited by utnubuuser; August 24th, 2010 at 08:32 AM.
    Kipling - "if"

  3. #3
    Join Date
    Jan 2006
    Location
    Australia
    Beans
    475
    Distro
    Lubuntu 13.04 Raring Ringtail

    Re: How to stop internet access from eth1?

    Quote Originally Posted by utnubuuser View Post
    would that be something along the lines of
    or, right-click the network icon, select "edit connections" and remove/edit eth0 or eth1
    I want to use both network cards, since I need to connect to the Windows Server for development (building a web application with LDAP, and need to connect to the Windows Server to test authentication etc).

    I just only want it to work internally.

  4. #4
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: How to stop internet access from eth1?

    Just thinking out loud...
    Routing could send all 192.168.67.X traffic to eth1, and eth0 could be the default for everything else - but that doesn't sound exactly like what you described...
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  5. #5
    Join Date
    Dec 2008
    Location
    Salt Lake City, Utah
    Beans
    150
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to stop internet access from eth1?

    Not sure exactly what you are trying to do, but you can set your default gateway to the interface that you would like to run your internet over which will force requests out that NIC but still allow incoming requests over the other. Are both NIC's connected to the same gateway? Are you trying to block all traffic from one NIC?
    David Toronto
    Technology Initiatives
    Blog: blog.technologyinitiatives.com

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
  •