[Firehol-support] Redirecting ports to other computers

Phil Whineray phil.whineray at gmail.com
Sun Jan 6 20:52:58 GMT 2013


On Sat, Jan 05, 2013 at 04:07:07PM +0000, Joaquin wrote:
> I want to redirect all requests that come from wan to port 443 on my server wan
> to port 443 of a local network ip
> EJ: iptables-t nat-A PREROUTING-p tcp-d 200.55.XX - dport 443-j DNAT - to
> this gives does not work, I get no error but does not refresh.
> this one does not give error but does nothing
> / Sbin / iptables-t nat-A PREROUTING-p tcp-d 200.55.XX - dport 443-j DNAT - to
>  I followed by adding
> / Sbin / iptables-A FORWARD-p tcp-d - dport 443-m state - state NEW,
> but still no redirects

You have not shared a full extract of your firehol.conf, but it sounds
like you are using /sbin/iptables in the middle of it, which will not
work. You need to use iptables without a path to ensure you invoke the
helper. See here:

Is there some reason you are not using the firehol redirection helpers
and a router rule? Earlier in the thread you have replied to there is
an example of using dnat and creating a router. That would be the best
way to do this with firehol in my opinion and almost exactly matches
your need (except it uses 2 hosts and changes port, too):

Hope that helps

More information about the Firehol-support mailing list