Forums

Luca Bleve
Luca Bleve
Offline
Resolved
0 votes
Hi, I have an problem port forwarding.
This is my network:
https://i.imgur.com/3VqMrIS.jpg

Wan interfaces : enp1s1
Lan interfaces : enp2s1

I checked if the request from the outside on the enp1s1(WAN) interface arrives with tcpdump and actually the request is there but it is not forwarded on the enp2s1 interface that connects in cascade to the router.
If I call from LAN 172.16.0.2 the apache server responds without problems.
I have deleted all rules and add one rule port-range 0-65535 to 172.16.0.2 but nothing.

In summary, the request from outside arrives and the router forwards it without problems to apache.
The problem is the port forwarding wan to lan sure that on the wan interface the request arrives.

I do not know what to do ...
Monday, September 30 2019, 12:27 PM
Share this post:
Responses (1)
  • Accepted Answer

    Saturday, October 05 2019, 08:59 AM - #Permalink
    Resolved
    0 votes
    Sorry for the delay, but notification e-mails of new posts have been failing so yours got stuck under moderation.

    Have you by any chance opened the incoming firewall as well? If you have it will stop port forwarding working.

    You have a bit of a weird setup as you have triple NAT. What is your router doing? ClearOS can perform all the routing functions. If it is just working as a WAP, the suggested way of working is to disable its DHCP server and put its LAN IP into the same subnet as ClearOS. Then connect the ClearOS LAN to the router LAN (not WAN). Then all devices will be on the ClearOS subnet. ClearOS will look after the DHCP (if you have enabled it) and your router will be functioning just as a switch.

    On your WAN, can you put your modem into Bridge Mode so ClearOS receives your WAN IP? It may mean changing the ClearOS WAN to PPPoE depending on the modem. Then you are only running single NAT through your system.
    The reply is currently minimized Show
Your Reply