OPNsense Forum

English Forums => General Discussion => Topic started by: Taomyn on May 27, 2020, 11:22:32 am

Title: How do I redirect all outbound traffic to a port to an internal host
Post by: Taomyn on May 27, 2020, 11:22:32 am
What's the best way to redirect all outbound traffic, i.e. to the WAN, for a specific port to an internal host?


For example, I want any NTP traffic for UDP 123 not directed at my firewall to be diverted to the firewall - it therefore needs to allow the firewall itself to contact the external NTP servers it uses for itself.


I tried to use a manual Outbound NAT rule on WAN (Outbound NAT is set to hybrid), but nothing gets written WAN firewall rules so I have no idea where to check why it's not working. I'm running v20.1
Title: Re: How do I redirect all outbound traffic to a port to an internal host
Post by: stasiakk on May 27, 2020, 02:12:13 pm
I think you need to do it on LAN interface (where connection is incomming)
Title: Re: How do I redirect all outbound traffic to a port to an internal host
Post by: Taomyn on May 27, 2020, 02:45:10 pm
I think you need to do it on LAN interface (where connection is incomming)


Thanks, it made no difference still no rules appear on the firewall
Title: Re: How do I redirect all outbound traffic to a port to an internal host
Post by: stasiakk on May 27, 2020, 04:03:40 pm
Did you add it by Firewall --> NAT ->port Forward ?
Title: Re: How do I redirect all outbound traffic to a port to an internal host
Post by: Taomyn on May 27, 2020, 04:14:36 pm
Did you add it by Firewall --> NAT ->port Forward ?


No by Outbound NAT because it's outbound connections I am trying to catch on the WAN interface