A typo by me I am trying to port forward SSH not http. Sorry I'll look at the link you sent me.
-----Ursprungligt meddelande----- Från: Matt Darfeuille [mailto:matd...@gmail.com] Skickat: den 27 februari 2018 13:30 Till: shorewall-users@lists.sourceforge.net Ämne: Re: [Shorewall-users] Shorewall dnat to virtualbox guest On 2/27/2018 11:42 AM, HÖGLUND, Göran wrote: > Hi > > I am trying to dnat port 80 from an network interface (eth0) to a > virtual machine guest’s host only interface. > > > > The host machine uses shorewall and the zone file looks like this: > > fw firewall > > net ipv4 > > vh ipv4 > > > > interfaces: > > net eth0 > > vh vboxnet0 > > > > policy: > > fw all ACCEPT > > all all DROP > > > > my dnat rule: > > DNAT net vh:192.168.56.2:22 tcp 2222 > > > > Connecting to the guest from the host works fine. > > I can see the traffic on port 2222 hitting the eth0 interface but > nothing is relayed to the guest on the virtual network. > > > > What am I missing?? > > > > Thanks Göran > If the following doesn't help, please do as describe at: http://shorewall.org/support.htm#Guidelines DNAT net vh:192.168.56.2:80 tcp I dont' understand why your DNAT rule uses ssh port instead of http port. -Matt -- Matt Darfeuille ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Shorewall-users mailing list Shorewall-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-users