Re: relayd and stateless UDP traffic

2020-11-22 Thread Martin
TCP conns works excellent using relayd.

The final goal is to make OpenVPN UDP connection as below:

PC 10.0.20.3 -> relayd -> NAT to egress (IPsec) -> Internet

But UDP redirection rule seems to work only for incoming UDP connections. I'm 
not sure about this.

I've tried:

redirect udp-pass {
  listen on 10.0.20.1 udp port 1:65535
  forward to nat lookup
}

# rcctl -d restart relayd
returns config error.

Any suggestions how to redirect UDP stateless from PC in local network to 
system wide NAT to egress (IPsec).

Martin

‐‐‐ Original Message ‐‐‐
On Sunday, November 22, 2020 2:54 PM, Stuart Henderson  
wrote:

> On 2020-11-22, Martin martin...@protonmail.com wrote:
>
> > I'm looking for a solution to handle stateless UDP traffic by relayd from 
> > various apps which use UDP. For now relayd configured to forward TCP 
> > connections only.
> > The goal is to use OpenVPN UDP connection trough relayd proxy.
> > Any suggestions/examples for would help find a solution.
> > Martin
>
> See relayd.conf(5), the second paragraph of the PROTOCOLS section.




relayd and stateless UDP traffic

2020-11-22 Thread Martin
I'm looking for a solution to handle stateless UDP traffic by relayd from 
various apps which use UDP. For now relayd configured to forward TCP 
connections only.

The goal is to use OpenVPN UDP connection trough relayd proxy.

Any suggestions/examples for would help find a solution.

Martin



Re: relayd and stateless UDP traffic

2020-11-22 Thread Stuart Henderson
On 2020-11-22, Martin  wrote:
> I'm looking for a solution to handle stateless UDP traffic by relayd from 
> various apps which use UDP. For now relayd configured to forward TCP 
> connections only.
>
> The goal is to use OpenVPN UDP connection trough relayd proxy.
>
> Any suggestions/examples for would help find a solution.
>
> Martin
>
>

See relayd.conf(5), the second paragraph of the PROTOCOLS section.