I have the following problem: I want to access a specific server that is in the green network from the red network, for example. E.g. 192.168.1.3:80
I have tried various rules but it does not work.
It only works to access the firewall red interface from the red network but not from the green network
The most important thing, I think, for me anyway, was the protocol, I used a “preset” option. Also, I do not think you need the “incoming firewall rule” so you could try removing that rule. Also please do not forget to click “apply rule” afterwards, or even better, reboot the whole IPFire box.
Just my 2cents.
Have you confirmed that the web server you are running on 192.168.1.2 or 192.168.1.3 (both IP’s have been referenced in the thread) is actually working.
On another machine on the green network, what result do you get if you put http://192.168.1.3:80 into the browser url field.
That will work only on the green network so it doesn’t need anything from IPFire.
If when you run that url you don’t get the web page you expect to see from your web server then you need to get the web server working first.
If when you run that url you do get the web page you expect to see then we need to start looking at the IPFire logs to see what is blocking the access from the internet.
Just to confirm, your ISP is providing you with a public IP address to your red interface?
Yes 192.168.1.2 and 192.168.1.3 work but only from the green network. I have not yet activated the ipfire as an exposed host. At the moment I have assigned a private ip from the fritzbox. I would like to configure everything correctly before I release the device into the WAN. I can only access the ipfire from the red (fritzbox network). But not to the devices that are in the green network. For example to the switch or access point
Okay so your green and red subnets are not overlapping, although it is not clear why you have your green subnet set up with 255.255.255.128 rather than the default 255.255.255.0
So now you need to also create a port forward rule in your Fritzbox that allows your public IP to be forwarded from the internet to 192.168.0.5 and your IPFire should have its rule changed from any for the source to 192.168.0.1 as the traffic will only come to IPFire from the fritzbox.
If you have a laptop or something that you can connect to the red connection between your fritzbox and IPFire then if the port forwarding rule has been correctly created you will be able to connect to the specified machines on green from red.
If that is not working then there must be an error in the port forward rules somewhere.
The web server in green 192.168.1.3:80 should be reachable from red as 192.168.0.5:80 if you have defined a port forward rule with
source <Any>:80
destination 192.168.1.3:80
A port forward rule opens the port on the red interface, DNAT maps the traffic to a service on an internal device.
From outside ( WAN ) it looks as if the server is located in the IPFire device.