tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: NPF and port forwarding?



On Thu, 28 Nov 2019 at 08:14, <Thiesi%tuebingen.mpg.de@localhost> wrote:
>
> I've been using ipfilter for the past two decades or so, but given its state I'm trying to switch to NPF on a particular server. The system in question has several network cards, each for a dedicated service bound to just one particular card. They are all directly connected to the Internet.
>
> However, I’m currently struggling to get a simple port forwarding working. All I want to do is forward all inbound traffic to port 22 on my wm3 interface to port 2222 on the same interface (i. e. the same IP address). One would think it should be straight forward, but a simple
>
> map wm3 dynamic $wm3_ip 2222 <- $wm3_ip port 22
>
> did not exactly yield the desired results (i. e. it did nothing). Any ideas what I'm missing here?

Does including proto tcp help?

map wm3 dynamic proto tcp $wm3_ip port 2222 <- $wm3_ip port 22

I'm doing something very similar but using a different target IP.

David


Home | Main Index | Thread Index | Old Index