This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

forward port 80 to internal server

I'm trying to setup portforwarding so that browsers outside my firewall can get to my webserver in my private network.  I've defined my www host in "networks" as:

foo.localhost.org     192.168.1.5     255.255.255.255

My outside interface as:

eth1_interface_     xxx.xxx.xxx.xxx     255.255.255.255

My internal network is:

eth0_network_ 192.168.1.0 255.255.255.0

In NAT/Masquerading, I've set up this rule for masquerading:

Name: MASQ
Rule Type: Masquerading
Network: eth0_network_
Interface: eth1_interface

and this one for portforwarding:

Name: www
Rule Type: DNAT/SNAT
Source Address: Any
Destination Address: eth1_interface_
Service: HTTP
Change Source To: no change
Change Destination To Address: foo.localhost.org
Change Destination To Service Destination: HTTP (80)

In Packet Filter, I have this rule as rule 1:

eth0_network_     Any    Any     Any

And this rule as rule 2

Any     HTTP     Any     Allow

I can get to my internal webserver foo.localhost.org from inside, but from outside, nothing.  What have I done wrong?  Masquerading works fine- I can surf the web, send mail, etc., but HTTP requests get filtered.

Thanks in advance,
soso


This thread was automatically locked due to age.
  • Hi!
    Try to change two things on your configuration:
    Under portforwarding:
    Change Destination To Service Destination to "no change"

    You have to be more precise on the rule also.
    Any HTTP Any Allow -> Change to this: Any HTTP foo.localhost.org Allow

    Hope it will work!
    /Daniel
  • hi,

    any reason, wy your outer network has 255.255.255.255 ??

    i have xxx.xxx.xxx.xxx/24 (where 24 means 255.255.255.0)
    and xxx.xxx.xxx.yyy/32 (where 32 means 255.255.255.255) only for additional adresses on this interface (a hint from astaro).
    does it make a difference ?

    kind regards, christian