Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Problem of forwarding port 80 to port 8080 using iptable

2 réponses
Avatar
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:

kernel-i586-up-1GB-2.6.8.1.12mdk-1-1mdk
iptables-1.2.9-7.1.101mdk

2 réponses

Avatar
Rakotomandimby (R12y) Mihamina
( Tue, 15 Mar 2005 21:12:51 -0800 ) Carfield Yim :
Anyone how can I solve?


- 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/

Avatar
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



output of 'lsmod | grep ipt'
[ root]# lsmod | grep ipt
ipt_REDIRECT 1600 0
iptable_nat 20556 1 ipt_REDIRECT
iptable_mangle 2016 0
ipt_state 1408 1
ip_conntrack 27816 3 ipt_REDIRECT,iptable_nat,ipt_state
iptable_filter 2016 1
ip_tables 14368 5
ipt_REDIRECT,iptable_nat,iptable_mangle,ipt_state,iptable_filter