RE: Port forwarding problem...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> internet 
> <------>(eth0)[web,smtp,pop3,ftp](eth1)<------>LAN(192.168.13.0/24)
> 
> i have only one "real" IP on eth0.
> 
> can you tell me how can i use something like :
> 
> http://www.myserver.xxx:33333 to redirect to .. let's say
192.168.13.147:80 ??
> 

iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o eth1 -d 192.168.13.147 -j ACCEPT

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 3333 -j DNAT
--to-destination 192.168.13.147:80

> the main problem that i see here is that on port 33333 i have no
services running.

If port forwarding doesn't work, you don't see a service running on the
port.
OTOH if portforwarding works but the service isn't running, the port
isn't open on <inet_ip> either.


Gr,
Rob




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux