Find the answer to your Linux question:
Results 1 to 2 of 2
gday, quick question, does anyone know of a way that i can forward all internal network traffic from a linux server to another one? can this be done with a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Australia (Down Under)
    Posts
    141

    Forward All Network Traffic To Another Server


    gday,
    quick question, does anyone know of a way that i can forward all internal network traffic from a linux server to another one? can this be done with a route or iptables or something like that?


    cheers
    Linux is the OS of tomorrow, Here today!!

  2. #2
    Linux Engineer Freston's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    1,049
    Yep it can be done. Easiest is on the gateway/router.

    You can specify which traffic; by interface, by source IP (or range of source IP's), by port, etc.
    Code:
    /sbin/iptables -t nat -A PREROUTING -i ${lan_interface} -p tcp -s ${range_of_source_ips} \
    -j DNAT --to-destination ${destination_ip}
    Can't tell an OS by it's GUI

Posting Permissions

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