Hi Jonas, When you specify target green or 192.168.1.25 this means that the packet arriving on the uplink should have a destination ip of the green network or 192.168.1.25 and usuually that doesn't happen because they are marked to arrive at your red ip address (usually a public ip from your provider if you use a classic network schema).
lets put it this way: 183.23.13.24 - ExtHost - host on internet 213.21.23.23 - RedIP - your red ip address 192.168.1.254 - GreenIP - your green ip address 192.168.1.25 - HTSrv - your http server Now lets see the situation you described: > "Access from : RED" does not work. I don't understand why. Do you ? > "Target : GREEN" or "Target : 192.168.1.25" does not work. I don't > understand why I can't use my LAN-client as target, as this is the > client to where to portforward ?! ExtHost -> RedIP -> GreenIP - forwarding refused because your rule says forward all packages with destination 192.168.1.25 but the package has destination 213.21.23.23 (RedIP) and that's why it's not forwarded To accomplish this you could have something like: Access from: Any (or anyuplink or uplink) Target: Uplink or any uplink IP: your internal server ip (192.168.1.25) Type: IP DNAT: NAT Service: HTTP This way: ExtHost -> RedIP -> GreenIP - forwarding accepted because access from and target are matched as well the service port and packet will be forwarded to the HTServ Access from is related to where the package is coming from. Target is the package destination on ip header not your local intended destination. With this new features on EFW you can have a greater control on more complex networks where you may have different layers of firewalling and this will be done just relying on the web interface, on version 2.2 with more complex rules and different layers of firewalling you needed to write a bunch of rules manually on command line. On Wednesday 30 December 2009 10:27:30 jonas kellens wrote: > Pedro, > > This is the right configuration for port forwarding to a LAN-client : > > Access from : any > Target : <any Uplink> > Port :TCP 51413 > Translate to IP 192.168.1.25 port 51413 > > > "Access from : RED" does not work. I don't understand why. Do you ? > "Target : GREEN" or "Target : 192.168.1.25" does not work. I don't > understand why I can't use my LAN-client as target, as this is the > client to where to portforward ?! > > Even with a good understanding of IPtables, I don't get this 'acces', > 'target' and 'source'. > > Can you maybe post a link to some examples cause I feel that the > documentation of Endian lacks some explanatory examples. > > > Jonas. > > > On Wed, 2009-12-30 at 10:12 +0000, Pedro M. S. Oliveira wrote: > > > Hi > > I disagree on you both about the new EFW firewall interface, I see it > > much more complete and feature rich than the previous one. This new > > interface has more advanced options that you may use and it reseable > > best the iptables capabilities. In my opinion this is the way to go > > and it will be the difference between an home router and a business > > system. > > im sure that with a bit of reading about firewall and the way they > > work you ll get there. > > cheers, > > pedro > > > -- ---------------------------------------------------------------------------------------------------------- Pedro M. S. Oliveira IT Consultant Email: pmsolive...@gmail.com URL: http://www.linux-geex.com Cellular: +351 96 5867227 ---------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Efw-user mailing list Efw-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/efw-user