{"id":63,"date":"2020-06-10T14:55:04","date_gmt":"2020-06-10T14:55:04","guid":{"rendered":"https:\/\/wp.sheepchen.net\/?p=63"},"modified":"2020-06-10T18:01:31","modified_gmt":"2020-06-10T18:01:31","slug":"opnsense-port-forwarting-not-working","status":"publish","type":"post","link":"https:\/\/wp.sheepchen.net\/?p=63","title":{"rendered":"OPNsense port forwarting (not working)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">How to add a forwartingrule:<\/p>\n\n\n<p><strong>Firewall settings<\/strong><\/p>\n<p>Firewall -&gt; Settings -&gt; Advanced:<code class=\"bbc_code\"><\/code><\/p>\n\n\n<pre class=\"wp-block-sentidoweb-snippet\"><code class=\"markdown\">- Reflection for port forwards: Enabled\n- Reflection for 1:1: Disabled\n- Automatic outbound NAT for Reflection: Enabled<\/code><\/pre>\n\n\n<p>then save and go to Firewall -&gt; NAT -&gt; Port Forward -&gt; Add<\/p>\n<p>I use the example from the source here. recap:<br>&#8211; You have a host with IP 192.168.1.200, with port 3100 open TCP.<br>&#8211; You want to port forward from the outside 9999 to 3100.<\/p>\n\n\n<pre class=\"wp-block-sentidoweb-snippet\"><code class=\"markdown\">- Interface: WAN\n- TCP\/IP Version: IPv4\n- Protocol: TCP\n\nUnder Source > Advanced:\n\n- Source \/ Invert: Unchecked\n- Source: Any\n- Source Port Range: any to any\n\n- Destination \/ Invert: Unchecked\n- Destination: WAN address\n- Destination Port range: (other) 9999 to (other) 9999\n\n- Redirect target IP: 192.168.1.200\n- Redirect target Port: (other) 3100\n\n- Pool Options: Default\n- NAT reflection: Enable\n- Filter rule association: Rule NAT<\/code><\/pre>\n\n\n<p>Now it should work! But if it doesn&#8217;t (in my case) try the following:<\/p>\n<p>from external: telnet &lt;your external IP&gt; 9999<br \/>from internal: telnet &lt;your external IP&gt; 9999<\/p>\n<p>Does the call from external not work, but from internal it does? Then look in the livelog if the query even get to your firewall: Firewall -&gt; Log Files -&gt; Live View<\/p>\n<p>If the query doesn&#8217;t show up maybe the error is before the firewall. In my case it was a NAT in the Fritzbox (even I have a external IP). I had to set the &#8220;exposed host&#8221; rule in the router. This is nessesary by newer Fritzbox models (in my case 6591 Cable).<\/p>\n<p>source: [<a href=\"https:\/\/forum.opnsense.org\/index.php?topic=8783.0\">theogravity<\/a>] [me]<\/p>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to add a forwartingrule: Firewall settings Firewall -&gt; Settings -&gt; Advanced: then save and go to Firewall -&gt; NAT -&gt; Port Forward -&gt; Add I use the example from the source here. recap:&#8211; You have a host with IP 192.168.1.200, with port 3100 open TCP.&#8211; You want to port forward from the outside 9999 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[2],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-network"],"_links":{"self":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":10,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":73,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions\/73"}],"wp:attachment":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}