Linux.com

oppigard

oppigard

  • Linux.com Member
  • Posts: 1
  • Member Since: 28 Jun
  • Last Logged In: 28 Jun

Latest Posts

Posted by
Topic
Post Preview
Posted
  • oppigard
    iptables - one internal, two external networks
    Hi I've set up a ubuntu server (14.04) to act as a router between our local workplace network, internet and corporate network. The server has three network interfaces: [b]eth0:[/b] Corporate network. My ubuntu server has joined the active directory (likewise-open), this is needed to have access to the intranet, SAP and so on. It receives an IP address from the corporate dhcp server. [b]eth1:[/b] Internet. This is just connected to a "clean" internet line. [b]eth2:[/b] Local network Running DHCP server for local network. I have configured iptables according to this (with some small changes): [url=https://help.ubuntu.com/community/Router/Firewall]https://help.ubuntu.com/community/Router/Firewall[/url] It is routing traffic from clients to the internet, so everything seems to be in order. What is left to do is to make iptables send traffic from clients that has a certain destination ip to the eth0 (corporate), and make it look like the traffic is coming from my server. And allow incoming traffic from those same ip's. So if anyone could point me in the right direction I would be truly grateful.
    Link to this post 28 Jun

    Hi

    I've set up a ubuntu server (14.04) to act as a router between our local workplace network, internet and corporate network.

    The server has three network interfaces:

    eth0:
    Corporate network.
    My ubuntu server has joined the active directory (likewise-open), this is needed to have access to the intranet, SAP and so on. It receives an IP address from the corporate dhcp server.

    eth1:
    Internet.
    This is just connected to a "clean" internet line.

    eth2:
    Local network
    Running DHCP server for local network.
    I have configured iptables according to this (with some small changes): https://help.ubuntu.com/community/Router/Firewall
    It is routing traffic from clients to the internet, so everything seems to be in order.

    What is left to do is to make iptables send traffic from clients that has a certain destination ip to the eth0 (corporate), and make it look like the traffic is coming from my server. And allow incoming traffic from those same ip's.

    So if anyone could point me in the right direction I would be truly grateful.

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board