UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Killswitch for UFW?

    Scheduled Pinned Locked Moved Unsolved Support
    1 Posts 1 Posters 301 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      bre34
      last edited by bre34

      I have a killswitch setup for UFW with tun0 (VPN). I am using a server that I set up in the VPN editor. This is what I have as rules so far in UFW:

      sudo ufw default deny outgoing
      sudo ufw default deny incoming
      sudo ufw allow out on tun0 from any to any
      sudo ufw allow in on tun0 from any to any

      The killswitch works, but to connect to the VPN server to start a connection, I have to disable UFW. Once a connection is established, I enable UFW. If I lose the VPN connection, I have to start over again. I tried making exceptions to UFW for the addresses and ports I am trying to connect to, but that is still giving me the same function as before. I know about the resolv-conf file and tried a modification there, but it didn't work. I can use "nano" for any file modifications and can change the read/write status of my UT image.

      My goal is to have the killswitch on all the time and make a connection and also able to reconnect on its own without any input from me.

      Are there any recommendations for UFW?

      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • First post
        Last post