Results 1 to 3 of 3

Thread: Network passthrough?

  1. #1
    Join Date
    Nov 2005
    Location
    Illinois
    Beans
    20
    Distro
    Ubuntu

    Network passthrough?

    I'm not sure if thread title is what I'm actually looking for...

    Anyway, I have a small computer that is getting re-purposed as a web server/development box. As it has two LAN ports, I thought about connecting it directly to my cable modem and then connecting it to my wireless router (modem > server > router). Would it be possible to just "pass through" the internet connection to the router or would I have to use the server I'm building as the router and turn the wireless router into a wireless access point (it has a built in "bridge mode" that I have used in the past)?

    Thanks in advance!

  2. #2
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Network passthrough?

    You'd need to set up the server to do the routing and just use the router as a switch/access point.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    12,798
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Network passthrough?

    You don't want to use bridging, though. Either you can put the wifi router behind the Linux box, or put the Linux box behind the router. In the first method, you'd give both the router and the router-facing interface on the Linux box a pair of static IPs, say 10.10.10.1 and 10.10.10.2, and let the router handle managing client machines with DHCP as it probably does now. The other method is more complicated since you would need to run isc-dhcp-server on the Linux box to manage the local network.

    In both cases you will probably need to configure the Linux box with an iptables rule that "masquerades" packets from the network behind it. For instance, if the wifi router is configured with 10.10.10.1, and the local network behind the Linux box uses 192.168.1.0/24 for the client workstations, the router will mishandle packets reaching it with a 192.168.1.x address. If you masquerade all the outbound traffic, then it will all appear to come from the externally-facing interface of the Linux box which in this example has 10.10.10.2.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

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
  •