PDA

Bekijk de volledige versie : Is this possible with Iptables



adams
27-08-2007, 05:43
I am running custom frimware (kfurge). can somebody tell me if the following setup is possible using Iptables?

I want the router to take incoming requests on wan from all ipaddresses on the internet and route them to a particular LAN ipaddress on different port.

Heres an eg to better illustrate what i want.

A request for eg on port 80 from the internet should be intercepted by IPTables and routed to my internal webserver running on port 8081 on IP address 192.168.1.5 ...(router IP address is 192.168.1.1)


thanks

gratitude182
27-08-2007, 08:47
i think you could use the virtual server in the webui... that should do the job.

grat182

adams
27-08-2007, 14:34
Grat, i have disabled the firewall. WIll the virtual sever still work? ..i dont think it will the port forwarding that i did for my ATA's is not working so i need to use IPtables to configure the port forwarding

johngicu
26-09-2007, 13:55
I am running custom frimware (kfurge). can somebody tell me if the following setup is possible using Iptables?

I want the router to take incoming requests on wan from all ipaddresses on the internet and route them to a particular LAN ipaddress on different port.

Heres an eg to better illustrate what i want.

A request for eg on port 80 from the internet should be intercepted by IPTables and routed to my internal webserver running on port 8081 on IP address 192.168.1.5 ...(router IP address is 192.168.1.1)


thanks

try
iptables -A FORWARD -p tcp --sport http -d 192.168.1.5 --dport tproxy -j ACCEPT

If it doesen't work with -A try with -I but that wont be a problem