# Send only outgoing traffic through VPN on Ubuntu server

**URL:** <https://forum.pritunl.com/t/send-only-outgoing-traffic-through-vpn-on-ubuntu-server/2262>\
**Category:** Pritunl VPN\
**Created:** [August 7, 2024, 11:24am UTC](https://forum.pritunl.com/t/send-only-outgoing-traffic-through-vpn-on-ubuntu-server/2262 "2024-08-07T11:24:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennis](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/d/e56c9b/32.png) [@dennis](https://forum.pritunl.com/u/dennis)\
**Post date:** [August 7, 2024, 11:24am UTC](https://forum.pritunl.com/t/send-only-outgoing-traffic-through-vpn-on-ubuntu-server/2262/1 "2024-08-07T11:24:53Z")

</div>

Hi all! Need help setting up a VPN connection. I have a server on which Pritunl is deployed. I also have an Ubuntu server (let’s call it **app\_server** ) on which some websites are located. How can I make sure that all outgoing traffic from **app\_server** goes through the VPN, while the sites on the **app\_server** remain accessible via the Internet? I installed an **openvpn** client on **app\_server** , connect it to the configuration `openvpn --config /etc/openvpn/my-conf.ovpn --daemon`, and everything works as it should, only my sites become inaccessible from the outside
