iptables and port forwarding

From: Anthony Ewell (aewell_at_gbis.com)
Date: 09/27/03


Date: Fri, 26 Sep 2003 19:32:28 -0700

Hi All,

    I am using iptables as my firewall, router, with masquerading.
I need to forward a particular IP address from the Internet (eth1)
to a particular PC behind my firewall (eth0, 192.168.255.xxx).

    Would someone show me an example of how to do this kind of
a port forward with iptables?

Many thanks,
--Tony
aewell@gbis.com

-- 
-------------------------
I Fish.  Therefore, I am.
-------------------------


Relevant Pages

  • Firewall Rules Summary
    ... Subject: Firewall Rules Summary ... This script is provided "as is" with no implied warranty. ... this came from various howtos and articles on iptables that existed around ... #specific port denies>1024 tcp ...
    (Focus-Linux)
  • Re: How to maximize security with iptables when http service opening?
    ... You're running firewall ... single host running httpd and iptables. ... If you want to run www server then you need to open port 80 ... Of course, attacker still can get it, ...
    (comp.os.linux.security)
  • Re: Webmin & system-config-securitylevel
    ... > I have a server running FC2, iptables were setup using ... > service unless I expressly opened that port. ... I did this thru webmin using the firewall config tool under ... <snip config files> ...
    (alt.os.linux.redhat)
  • Re: restrict implicit binding to addresses
    ... You probably want a firewall that is not administered by the students. ... user, by port, or by any other method iptables allows. ... that opens the firewall for the ...
    (comp.os.linux.networking)
  • Re: FC3 traffic cant get thru firewall
    ... time with the Linux firewall since upgrading FC2->FC3. ... going to say, its blocking port 22... ... SSH just stops authenticating. ... Its almost as if the iptables is allowing the port ...
    (Fedora)