What's wrong with this iptables command?

From: Alec Waters (alec.waters_at_NdatalineO.ScoP.AukM)
Date: 11/14/03

  • Next message: Greg Akins: "Re: Wireless problems"
    Date: Fri, 14 Nov 2003 12:54:07 +0000
    
    

    Hi all,

    I'm trying to set up some port forwarding with iptables. I want all
    traffic directed at eth0's IP address (the public interface) on tcp/8080
    to be redirected to an internal host on the same port. Here's what I've got:

    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8080 -j DNAT --to
    192.168.135.210:8080
    iptables: Invalid argument

    iptables is v1.2.8, Linux is 2.4.20. Which argument is invalid? What
    have I done wrong?

    thanks a lot,
    alec

    --
    

  • Next message: Greg Akins: "Re: Wireless problems"

    Relevant Pages

    • Linux iptables masq and port forwarding issue - probs fixed
      ... I was having troubles port forwarding to my main system a few main ... as well as running the MASQ on a private lan. ... $IPTABLES -t filter -P INPUT ACCEPT ...
      (comp.os.linux.security)
    • Re: Whats wrong with this iptables command?
      ... >>I'm trying to set up some port forwarding with iptables. ... >>to be redirected to an internal host on the same port. ... > In my case kernel required recompliation in order to implement NAT. ...
      (comp.os.linux.networking)
    • Re: Firewall software for Linux?
      ... > allow me to easily configure port forwarding to allow gaming on my LAN, ... > configure a software firewall to allow a range of ports (e.g Unreal ... There are several gui front-ends to iptables, ...
      (comp.os.linux.security)
    • Re: Webmin / Usermin and port blocking
      ... >> Setup port forwarding via iptables, or you could utilize something like ... >> dnydns's webhop service ... Iptables port forwarding would look like this (apologies for the line ...
      (Fedora)
    • Re: Port forwarding question
      ... Here's my whole iptables: ... I already tried with port forwarding similar to yours, ... gateway when I try to connect from the internet to my domain. ... Everything will be okay ...
      (comp.os.linux.networking)