OPNsense Forum

English Forums => Virtual private networks => Topic started by: lvsund on November 05, 2023, 12:31:55 AM

Title: making opnsense tailscale use an exit node in the cloud
Post by: lvsund on November 05, 2023, 12:31:55 AM
Hi,

I have tailscale installed on opnsense and clients for all my devices including one in the cloud. The one in the cloud is the exit node- so that in effect tailscale is used as a vpn for exiting out to the internet. All clients except opnsense router recognize and use the exit node- when requested by client. I can tell by checking whatsmyip.

What I am trying to do is have opnsense route all traffic through that cloud exit node. The idea would then be it wouldnt have to be chosen on each client.

I am assuming that this requires telling opnsense to route all traffic through the tailscale interface. How is that done /what rule do I set up to achieve that? I am assuming that once done I could use any browser on any device and have it show the whatsmyip point to the cloud machine exit node address. Or am I misunderstanding something? Thanks for whatever advice can be provided...
Title: Re: making opnsense tailscale use an exit node in the cloud
Post by: bartjsmit on November 05, 2023, 09:43:32 AM
You effectively have two WAN connections - tailscale and your ISP. Check out the docs for setup https://docs.opnsense.org/manual/how-tos/multiwan.html
Title: Re: making opnsense tailscale use an exit node in the cloud
Post by: lvsund on November 05, 2023, 10:14:49 PM
Thanks- Ill check into that link :)
Title: Re: making opnsense tailscale use an exit node in the cloud
Post by: mr_rbn on July 18, 2024, 04:28:37 PM
Hey lvsund,

I know it's quiet a long time ago, but did you managed to setup up a tailscale exit node in opnSENSE?