Port forward from RED to external public IP

NethServer Version: 7.5
Module: firewall-base

i’ m trying to forward request to port 80 of my RED (ETH1) IP address to port 80 of another public IP address but still receive this error:

nethserver kernel: Shorewall:sfilter1:DROP:IN=eth1 OUT=eth1 MAC=0a:46:09:645:f9:e0:0a:2a:64:33:a5:89:08:00 SRC= DST= LEN=60 TOS=0x00 PREC=0x00 TTL=42 ID=26722 DF PROTO=TCP SPT=61628 DPT=80 WINDOW=29200 RES=0x00 SYN URGP=0

Why forward to an external address? It should be sufficient to add a DNS entry? You are trying to use the firewall the other way around… (or I am misreading your post)


If you want to forward a website the index.html at your local server could be as the following:

<html lang="en-US">  
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="0; url=https://MyExternalSite.com">
        <script type="text/javascript">
            window.location.href = "https://MyExternalSite"
        <title>Page Redirection</title>
        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
        If you are not redirected automatically, follow this <a href='https://MyExternalSite'>link to https://MyExternalSite</a>.

It redirects to the other domain.