Problem of forwarding port 80 to port 8080 using iptable
2 réponses
carfield
I try to redirect the request to java container using information of
this page: http://jetty.mortbay.org/jetty/faq?s=300-HTTP&t=user80
However, I get this message
iptables: Target problem
Anyone how can I solve? Have search through google but nothing useful
found...
Somebody tell me that kernel module "ipt_mangle" is needed, but what I
only find is "iptable_mangle". Even I've load that, it still fail.
Anyone have any idea of this? I am using mandrake 10.1, with kernel
and iptable as following:
- beeing polite - reading and double checking what group are you posting in (you're on a French speaking one here) - listing you full ruleset, or the full output of "iptables-save", and 'lsmod | grep ipt'
-- En mal de support technique? http://supports.etud-orleans.fr/ Infogerance de serveur dedie http://aspo.rktmb.org/activites/infogerance (En louant les services de l'ASPO vous luttez contre la fracture numerique) Etudiants de l'Universite d'Orleans: http://www.etud-orleans.fr/
- beeing polite
- reading and double checking what group are you posting in (you're on a
French speaking one here)
- listing you full ruleset, or the full output of "iptables-save", and
'lsmod | grep ipt'
--
En mal de support technique? http://supports.etud-orleans.fr/
Infogerance de serveur dedie http://aspo.rktmb.org/activites/infogerance
(En louant les services de l'ASPO vous luttez contre la fracture numerique)
Etudiants de l'Universite d'Orleans: http://www.etud-orleans.fr/
- beeing polite - reading and double checking what group are you posting in (you're on a French speaking one here) - listing you full ruleset, or the full output of "iptables-save", and 'lsmod | grep ipt'
-- En mal de support technique? http://supports.etud-orleans.fr/ Infogerance de serveur dedie http://aspo.rktmb.org/activites/infogerance (En louant les services de l'ASPO vous luttez contre la fracture numerique) Etudiants de l'Universite d'Orleans: http://www.etud-orleans.fr/
carfield
Anyone how can I solve? It should be "Anyone can help me solve"
beeing polite Sorry if any offence
reading and double checking what group are you posting in (you're on a French speaking one here)
I just find out this group at groups.google.com when I search iptable, I haven't read about this group in detail, sorry
listing you full ruleset, or the full output of "iptables-save", and 'lsmod | grep ipt'
Sure: output of iptables-save # Generated by iptables-save v1.2.9 on Thu Mar 17 08:19:29 2005 *nat :PREROUTING ACCEPT [44318:2517818] :POSTROUTING ACCEPT [7664:526170] :OUTPUT ACCEPT [7664:526170] COMMIT # Completed on Thu Mar 17 08:19:29 2005 # Generated by iptables-save v1.2.9 on Thu Mar 17 08:19:29 2005 *mangle :PREROUTING ACCEPT [1282675:182634837] :INPUT ACCEPT [1282675:182634837] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [1801073:2057918079] :POSTROUTING ACCEPT [1801073:2057918079] COMMIT # Completed on Thu Mar 17 08:19:29 2005 # Generated by iptables-save v1.2.9 on Thu Mar 17 08:19:29 2005 *filter :INPUT DROP [10270:653017] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [1800731:2057896407] -A INPUT -s 127.0.0.1 -j ACCEPT -A INPUT -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT -A INPUT -i eth0 -p tcp -m tcp --dport 25 -j ACCEPT -A INPUT -i eth0 -p tcp -m tcp --dport 80 -j ACCEPT -A INPUT -i eth0 -p tcp -m tcp --dport 3690 -j ACCEPT -A INPUT -s 203.198.0.0/255.255.0.0 -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT -A INPUT -s 192.168.0.0/255.255.0.0 -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT -A INPUT -s 202.64.181.18 -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT -A INPUT -s 202.64.181.19 -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT -A INPUT -s 202.123.77.209 -i eth0 -p udp -m udp --sport 53 -j ACCEPT -A INPUT -s 202.123.77.209 -i eth0 -p tcp -m tcp --sport 53 -j ACCEPT -A INPUT -s 203.78.64.137 -i eth0 -p udp -m udp --sport 53 -j ACCEPT -A INPUT -s 203.78.64.137 -i eth0 -p tcp -m tcp --sport 53 -j ACCEPT -A INPUT -i eth0 -p icmp -m icmp --icmp-type 0 -j ACCEPT -A INPUT -i eth0 -p icmp -m icmp --icmp-type 8 -j ACCEPT -A INPUT -i eth0 -p icmp -m icmp --icmp-type 11 -j ACCEPT COMMIT # Completed on Thu Mar 17 08:19:29 2005