From: Jamie C. <jca...@we...> - 2009-06-03 16:51:34
|
On 03/Jun/2009 09:39 Ron Eggler <ron...@gm...> wrote .. > On Wednesday 03 June 2009 9:29:13 am Jamie Cameron wrote: > > On 02/Jun/2009 23:09 Ron Eggler <ron...@gm...> wrote .. > > > > > Hi There, > > > > > > I have setup a router with webmin - now I would like to forward any > > > incoming request to my internal firewall. How can i setup a DMZ? > > > (redirecting incoming requests to a fix IP) > > > > If you want to do port forwarding, this can be done using the Linux > > Firewall module. You need to create a rule in the 'Network address > > translation' table in the 'Packets before routing' chain, like : > > > > Action: Destination NAT > > Condition: If protocol is TCP and input interface is eth1 and destination > > port is 80 > > > > When creating the rule, you will be able to select the port to be > > forwarded, and the internal IP to forward it to. > > Thanks for the reply but what if i would like to forward all requests to one > IP? I'm not gonna add 65535 rules ;) I'm not sure off the top of my head how to do that .. but I suspect it rarely comes up, as there are typically only a limited number of protocols you want your internal server to handle. So just forward their ports.. - Jamie |