Port Forwarding Problem

Samuel Díaz García samueldg at arcoscom.com
Fri Apr 15 10:40:39 CEST 2005


Without having a look into your scripts, I think you need: 

1) Allow INPUT into filter table to the port.
2) Allow FORDWARD into filter table to the redirected conection. 

Good luck. 

Julian Labuschagne writes: 

> Hi everyone I'm a bit new to iptables so please bear with me on this one 
> ;) 
> 
> I wrote a small firewall that basicaly nats users through my gateway 
> machine only allowing certain hosts on my network Web DNS and Mail access. 
> 
> This section works fine. 
> 
> But I also want to port forward any connections from outside to port 800 
> to a host running inside my LAN.
> I added a rule in the PREROUTING table to do this. 
> 
> But it seems that no connection gets forwarded. 
> 
> If I set my default policies to ACCEPT and add the PREROUTING rule it 
> actualy does the port forwarding correctly. 
> 
> I attached a copy of the firewall I wrote with this message. 
> 
> Please can someone have a look through it for me cause I'm sure I'm just 
> missing something. 
> 
> Kind Regards Julian. 
> 
>  
> 
 


Samuel D�az Garc�a
Director Gerente
ArcosCom Wireless, S.L.L. 

mailto:samueldg at arcoscom.com
http://www.arcoscom.com
m�vil: 651 93 72 48
tlfn.: 956 70 13 15
fax:   956 70 34 83 





More information about the netfilter mailing list