Security

Token

There is no security token.

Firewall

main Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.app_user_provider
context main
entry_point App\Security\KbinAuthenticator
user_checker App\Security\UserChecker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "two_factor"
  "remember_me"
  "App\Security\KbinAuthenticator"
  "App\Security\FacebookAuthenticator"
  "App\Security\GoogleAuthenticator"
  "App\Security\GithubAuthenticator"
  "App\Security\KeycloakAuthenticator"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#723
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
  -logger: Monolog\Logger {#783 …}
  -httpPort: 80
  -httpsPort: 443
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\ContextListener {#706
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#1017 …}
  -sessionKey: "_security_main"
  -logger: Monolog\Logger {#783 …}
  -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#705 …}
  -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
  -registered: false
  -trustResolver: Scheb\TwoFactorBundle\Security\Authentication\AuthenticationTrustResolver {#780 …}
  -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#703 …}
}
0.81 ms (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#584
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#595 …}
}
0.00 ms (none)
Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener {#582
  -twoFactorFirewallConfig: Scheb\TwoFactorBundle\Security\TwoFactor\TwoFactorFirewallConfig {#842 …}
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -twoFactorAccessDecider: Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider {#581 …}
}
0.05 ms (none)
Symfony\Component\Security\Http\Firewall\AccessListener {#579
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#937 …}
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\LogoutListener {#786
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -options: [
    "csrf_parameter" => "_csrf_token"
    "csrf_token_id" => "logout"
    "logout_path" => "app_logout"
  ]
  -httpUtils: Symfony\Component\Security\Http\HttpUtils {#841 …}
  -csrfTokenManager: Symfony\Component\Security\Csrf\CsrfTokenManager {#1015 …}
  -eventDispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
}
0.00 ms (none)

Authenticators

No authenticators have been recorded. Check previous profiles on your authentication endpoint.

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
4
"Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter"
5
"App\Security\Voter\EntryCommentVoter"
6
"App\Security\Voter\EntryVoter"
7
"App\Security\Voter\MagazineVoter"
8
"App\Security\Voter\MessageThreadVoter"
9
"App\Security\Voter\MessageVoter"
10
"App\Security\Voter\NotificationVoter"
11
"App\Security\Voter\OAuth2UserConsentVoter"
12
"App\Security\Voter\PostCommentVoter"
13
"App\Security\Voter\PostVoter"
14
"App\Security\Voter\UserVoter"

Access decision log

# Result Attributes Object
1 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
2 DENIED moderate
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#276
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#270
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
  +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
  +url: null
  +body: """
    I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
    \n
    This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
    \n
    This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
    \n
    This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
    \n
    I used this page to figure out how to do this:\n
    \n
    [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
    \n
    Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
    \n
    `  sudo ip route add default via 192.168.19.1 table 10`\n
    \n
    Add a rule for the return traffic from your ssh host\n
    \n
    `  sudo ip rule add sport 22 table 10`\n
    \n
    `  sudo ip route flush cache`\n
    \n
    check out your fancy new rule\n
    \n
    `  ip rule show`\n
    \n
    And to make this persistent across reboots, add to:\n
    \n
    `/etc/systemd/network/20-wired.network`\n
    \n
    (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
    \n
    ```\n
    \n
    <span style="color:#323232;">[Route]\n
    </span><span style="color:#323232;">Gateway=192.168.19.1\n
    </span><span style="color:#323232;">Table=10\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">[RoutingPolicyRule]\n
    </span><span style="color:#323232;">SourcePort=22\n
    </span><span style="color:#323232;">Table=10\n
    </span>\n
    ```
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 21
  +favouriteCount: 90
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1700086096 {#2410
    date: 2023-11-15 23:08:16.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 13100
  -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
  -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1700086244
  +visibility: "visible             "
  +apId: "https://lemmy.nz/post/3374605"
  +editedAt: DateTimeImmutable @1700341046 {#1850
    date: 2023-11-18 21:57:26.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699999844 {#2420
    date: 2023-11-14 23:10:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
3 DENIED edit
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#276
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#270
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
  +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
  +url: null
  +body: """
    I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
    \n
    This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
    \n
    This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
    \n
    This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
    \n
    I used this page to figure out how to do this:\n
    \n
    [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
    \n
    Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
    \n
    `  sudo ip route add default via 192.168.19.1 table 10`\n
    \n
    Add a rule for the return traffic from your ssh host\n
    \n
    `  sudo ip rule add sport 22 table 10`\n
    \n
    `  sudo ip route flush cache`\n
    \n
    check out your fancy new rule\n
    \n
    `  ip rule show`\n
    \n
    And to make this persistent across reboots, add to:\n
    \n
    `/etc/systemd/network/20-wired.network`\n
    \n
    (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
    \n
    ```\n
    \n
    <span style="color:#323232;">[Route]\n
    </span><span style="color:#323232;">Gateway=192.168.19.1\n
    </span><span style="color:#323232;">Table=10\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">[RoutingPolicyRule]\n
    </span><span style="color:#323232;">SourcePort=22\n
    </span><span style="color:#323232;">Table=10\n
    </span>\n
    ```
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 21
  +favouriteCount: 90
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1700086096 {#2410
    date: 2023-11-15 23:08:16.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 13100
  -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
  -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1700086244
  +visibility: "visible             "
  +apId: "https://lemmy.nz/post/3374605"
  +editedAt: DateTimeImmutable @1700341046 {#1850
    date: 2023-11-18 21:57:26.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699999844 {#2420
    date: 2023-11-14 23:10:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
4 DENIED moderate
App\Entity\Entry {#2412
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#266
    +icon: Proxies\__CG__\App\Entity\Image {#247 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#276
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#238 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
    +entries: Doctrine\ORM\PersistentCollection {#181 …}
    +posts: Doctrine\ORM\PersistentCollection {#139 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
    +bans: Doctrine\ORM\PersistentCollection {#118 …}
    +reports: Doctrine\ORM\PersistentCollection {#104 …}
    +badges: Doctrine\ORM\PersistentCollection {#82 …}
    +logs: Doctrine\ORM\PersistentCollection {#72 …}
    +awards: Doctrine\ORM\PersistentCollection {#61 …}
    +categories: Doctrine\ORM\PersistentCollection {#1820 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#270
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#272
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
  +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
  +url: null
  +body: """
    I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
    \n
    This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
    \n
    This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
    \n
    This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
    \n
    I used this page to figure out how to do this:\n
    \n
    [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
    \n
    Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
    \n
    `  sudo ip route add default via 192.168.19.1 table 10`\n
    \n
    Add a rule for the return traffic from your ssh host\n
    \n
    `  sudo ip rule add sport 22 table 10`\n
    \n
    `  sudo ip route flush cache`\n
    \n
    check out your fancy new rule\n
    \n
    `  ip rule show`\n
    \n
    And to make this persistent across reboots, add to:\n
    \n
    `/etc/systemd/network/20-wired.network`\n
    \n
    (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
    \n
    ```\n
    \n
    <span style="color:#323232;">[Route]\n
    </span><span style="color:#323232;">Gateway=192.168.19.1\n
    </span><span style="color:#323232;">Table=10\n
    </span><span style="color:#323232;">\n
    </span><span style="color:#323232;">[RoutingPolicyRule]\n
    </span><span style="color:#323232;">SourcePort=22\n
    </span><span style="color:#323232;">Table=10\n
    </span>\n
    ```
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 21
  +favouriteCount: 90
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1700086096 {#2410
    date: 2023-11-15 23:08:16.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 13100
  -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
  -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1700086244
  +visibility: "visible             "
  +apId: "https://lemmy.nz/post/3374605"
  +editedAt: DateTimeImmutable @1700341046 {#1850
    date: 2023-11-18 21:57:26.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699999844 {#2420
    date: 2023-11-14 23:10:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
5 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
6 DENIED moderate
App\Entity\EntryComment {#4076
  +user: App\Entity\User {#4024 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Huh. Neat!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1699999955 {#4085
    date: 2023-11-14 23:12:35.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4074 …}
  +nested: Doctrine\ORM\PersistentCollection {#4072 …}
  +votes: Doctrine\ORM\PersistentCollection {#4070 …}
  +reports: Doctrine\ORM\PersistentCollection {#4068 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4036 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4040 …}
  -id: 125234
  -bodyTs: "'huh':1 'neat':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.cafe/comment/2939578"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699999955 {#4021
    date: 2023-11-14 23:12:35.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
7 DENIED edit
App\Entity\EntryComment {#4076
  +user: App\Entity\User {#4024 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Huh. Neat!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1699999955 {#4085
    date: 2023-11-14 23:12:35.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4074 …}
  +nested: Doctrine\ORM\PersistentCollection {#4072 …}
  +votes: Doctrine\ORM\PersistentCollection {#4070 …}
  +reports: Doctrine\ORM\PersistentCollection {#4068 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4036 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4040 …}
  -id: 125234
  -bodyTs: "'huh':1 'neat':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.cafe/comment/2939578"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699999955 {#4021
    date: 2023-11-14 23:12:35.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
8 DENIED moderate
App\Entity\EntryComment {#4076
  +user: App\Entity\User {#4024 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Huh. Neat!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1699999955 {#4085
    date: 2023-11-14 23:12:35.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4074 …}
  +nested: Doctrine\ORM\PersistentCollection {#4072 …}
  +votes: Doctrine\ORM\PersistentCollection {#4070 …}
  +reports: Doctrine\ORM\PersistentCollection {#4068 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4036 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4040 …}
  -id: 125234
  -bodyTs: "'huh':1 'neat':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.cafe/comment/2939578"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699999955 {#4021
    date: 2023-11-14 23:12:35.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
9 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
10 DENIED moderate
App\Entity\EntryComment {#4108
  +user: App\Entity\User {#4097 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Finally someone who learnt how to use systemd."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 21
  +score: 0
  +lastActive: DateTime @1700343203 {#4114
    date: 2023-11-18 22:33:23.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4113 …}
  +nested: Doctrine\ORM\PersistentCollection {#4112 …}
  +votes: Doctrine\ORM\PersistentCollection {#4103 …}
  +reports: Doctrine\ORM\PersistentCollection {#4106 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
  -id: 125278
  -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5315426"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700000538 {#4119
    date: 2023-11-14 23:22:18.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
11 DENIED edit
App\Entity\EntryComment {#4108
  +user: App\Entity\User {#4097 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Finally someone who learnt how to use systemd."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 21
  +score: 0
  +lastActive: DateTime @1700343203 {#4114
    date: 2023-11-18 22:33:23.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4113 …}
  +nested: Doctrine\ORM\PersistentCollection {#4112 …}
  +votes: Doctrine\ORM\PersistentCollection {#4103 …}
  +reports: Doctrine\ORM\PersistentCollection {#4106 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
  -id: 125278
  -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5315426"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700000538 {#4119
    date: 2023-11-14 23:22:18.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
12 DENIED moderate
App\Entity\EntryComment {#4108
  +user: App\Entity\User {#4097 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Finally someone who learnt how to use systemd."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 21
  +score: 0
  +lastActive: DateTime @1700343203 {#4114
    date: 2023-11-18 22:33:23.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4113 …}
  +nested: Doctrine\ORM\PersistentCollection {#4112 …}
  +votes: Doctrine\ORM\PersistentCollection {#4103 …}
  +reports: Doctrine\ORM\PersistentCollection {#4106 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
  -id: 125278
  -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5315426"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700000538 {#4119
    date: 2023-11-14 23:22:18.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
13 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
14 DENIED moderate
App\Entity\EntryComment {#4493
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4108
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Finally someone who learnt how to use systemd."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 21
    +score: 0
    +lastActive: DateTime @1700343203 {#4114
      date: 2023-11-18 22:33:23.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4113 …}
    +nested: Doctrine\ORM\PersistentCollection {#4112 …}
    +votes: Doctrine\ORM\PersistentCollection {#4103 …}
    +reports: Doctrine\ORM\PersistentCollection {#4106 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
    -id: 125278
    -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5315426"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700000538 {#4119
      date: 2023-11-14 23:22:18.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: """
    > learnt\n
    \n
    learning… it’s extensive!
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 11
  +score: 0
  +lastActive: DateTime @1700011019 {#4492
    date: 2023-11-15 02:16:59.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4497 …}
  +nested: Doctrine\ORM\PersistentCollection {#4503 …}
  +votes: Doctrine\ORM\PersistentCollection {#4499 …}
  +reports: Doctrine\ORM\PersistentCollection {#4504 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
  -id: 125767
  -bodyTs: "'extens':5 'learn':2 'learnt':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3773767"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700011019 {#4489
    date: 2023-11-15 02:16:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
15 DENIED edit
App\Entity\EntryComment {#4493
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4108
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Finally someone who learnt how to use systemd."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 21
    +score: 0
    +lastActive: DateTime @1700343203 {#4114
      date: 2023-11-18 22:33:23.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4113 …}
    +nested: Doctrine\ORM\PersistentCollection {#4112 …}
    +votes: Doctrine\ORM\PersistentCollection {#4103 …}
    +reports: Doctrine\ORM\PersistentCollection {#4106 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
    -id: 125278
    -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5315426"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700000538 {#4119
      date: 2023-11-14 23:22:18.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: """
    > learnt\n
    \n
    learning… it’s extensive!
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 11
  +score: 0
  +lastActive: DateTime @1700011019 {#4492
    date: 2023-11-15 02:16:59.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4497 …}
  +nested: Doctrine\ORM\PersistentCollection {#4503 …}
  +votes: Doctrine\ORM\PersistentCollection {#4499 …}
  +reports: Doctrine\ORM\PersistentCollection {#4504 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
  -id: 125767
  -bodyTs: "'extens':5 'learn':2 'learnt':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3773767"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700011019 {#4489
    date: 2023-11-15 02:16:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
16 DENIED moderate
App\Entity\EntryComment {#4493
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4108
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Finally someone who learnt how to use systemd."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 21
    +score: 0
    +lastActive: DateTime @1700343203 {#4114
      date: 2023-11-18 22:33:23.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4113 …}
    +nested: Doctrine\ORM\PersistentCollection {#4112 …}
    +votes: Doctrine\ORM\PersistentCollection {#4103 …}
    +reports: Doctrine\ORM\PersistentCollection {#4106 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
    -id: 125278
    -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5315426"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700000538 {#4119
      date: 2023-11-14 23:22:18.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: """
    > learnt\n
    \n
    learning… it’s extensive!
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 11
  +score: 0
  +lastActive: DateTime @1700011019 {#4492
    date: 2023-11-15 02:16:59.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4497 …}
  +nested: Doctrine\ORM\PersistentCollection {#4503 …}
  +votes: Doctrine\ORM\PersistentCollection {#4499 …}
  +reports: Doctrine\ORM\PersistentCollection {#4504 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
  -id: 125767
  -bodyTs: "'extens':5 'learn':2 'learnt':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3773767"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700011019 {#4489
    date: 2023-11-15 02:16:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
17 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
18 DENIED moderate
App\Entity\EntryComment {#4595
  +user: App\Entity\User {#4097 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4493
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4108
      +user: App\Entity\User {#4097 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Finally someone who learnt how to use systemd."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 21
      +score: 0
      +lastActive: DateTime @1700343203 {#4114
        date: 2023-11-18 22:33:23.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4113 …}
      +nested: Doctrine\ORM\PersistentCollection {#4112 …}
      +votes: Doctrine\ORM\PersistentCollection {#4103 …}
      +reports: Doctrine\ORM\PersistentCollection {#4106 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
      -id: 125278
      -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/5315426"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700000538 {#4119
        date: 2023-11-14 23:22:18.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4108}
    +body: """
      > learnt\n
      \n
      learning… it’s extensive!
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 11
    +score: 0
    +lastActive: DateTime @1700011019 {#4492
      date: 2023-11-15 02:16:59.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@TCB13@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4497 …}
    +nested: Doctrine\ORM\PersistentCollection {#4503 …}
    +votes: Doctrine\ORM\PersistentCollection {#4499 …}
    +reports: Doctrine\ORM\PersistentCollection {#4504 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
    -id: 125767
    -bodyTs: "'extens':5 'learn':2 'learnt':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3773767"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700011019 {#4489
      date: 2023-11-15 02:16:59.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: "Here, a bit more for you: [tadeubento.com/…/systemd-hidden-gems-for-a-better…](https://tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 5
  +score: 0
  +lastActive: DateTime @1700043569 {#4593
    date: 2023-11-15 11:19:29.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4596 …}
  +nested: Doctrine\ORM\PersistentCollection {#4598 …}
  +votes: Doctrine\ORM\PersistentCollection {#4600 …}
  +reports: Doctrine\ORM\PersistentCollection {#4602 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4604 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4606 …}
  -id: 126600
  -bodyTs: "'/2023/systemd-hidden-gems-for-a-better-linux/)':11 '/systemd-hidden-gems-for-a-better':8 'bit':3 'tadeubento.com':7,10 'tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)':9"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5329106"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700043569 {#4594
    date: 2023-11-15 11:19:29.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
19 DENIED edit
App\Entity\EntryComment {#4595
  +user: App\Entity\User {#4097 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4493
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4108
      +user: App\Entity\User {#4097 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Finally someone who learnt how to use systemd."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 21
      +score: 0
      +lastActive: DateTime @1700343203 {#4114
        date: 2023-11-18 22:33:23.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4113 …}
      +nested: Doctrine\ORM\PersistentCollection {#4112 …}
      +votes: Doctrine\ORM\PersistentCollection {#4103 …}
      +reports: Doctrine\ORM\PersistentCollection {#4106 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
      -id: 125278
      -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/5315426"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700000538 {#4119
        date: 2023-11-14 23:22:18.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4108}
    +body: """
      > learnt\n
      \n
      learning… it’s extensive!
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 11
    +score: 0
    +lastActive: DateTime @1700011019 {#4492
      date: 2023-11-15 02:16:59.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@TCB13@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4497 …}
    +nested: Doctrine\ORM\PersistentCollection {#4503 …}
    +votes: Doctrine\ORM\PersistentCollection {#4499 …}
    +reports: Doctrine\ORM\PersistentCollection {#4504 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
    -id: 125767
    -bodyTs: "'extens':5 'learn':2 'learnt':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3773767"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700011019 {#4489
      date: 2023-11-15 02:16:59.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: "Here, a bit more for you: [tadeubento.com/…/systemd-hidden-gems-for-a-better…](https://tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 5
  +score: 0
  +lastActive: DateTime @1700043569 {#4593
    date: 2023-11-15 11:19:29.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4596 …}
  +nested: Doctrine\ORM\PersistentCollection {#4598 …}
  +votes: Doctrine\ORM\PersistentCollection {#4600 …}
  +reports: Doctrine\ORM\PersistentCollection {#4602 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4604 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4606 …}
  -id: 126600
  -bodyTs: "'/2023/systemd-hidden-gems-for-a-better-linux/)':11 '/systemd-hidden-gems-for-a-better':8 'bit':3 'tadeubento.com':7,10 'tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)':9"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5329106"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700043569 {#4594
    date: 2023-11-15 11:19:29.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
20 DENIED moderate
App\Entity\EntryComment {#4595
  +user: App\Entity\User {#4097 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4493
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4108
      +user: App\Entity\User {#4097 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Finally someone who learnt how to use systemd."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 21
      +score: 0
      +lastActive: DateTime @1700343203 {#4114
        date: 2023-11-18 22:33:23.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4113 …}
      +nested: Doctrine\ORM\PersistentCollection {#4112 …}
      +votes: Doctrine\ORM\PersistentCollection {#4103 …}
      +reports: Doctrine\ORM\PersistentCollection {#4106 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
      -id: 125278
      -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/5315426"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700000538 {#4119
        date: 2023-11-14 23:22:18.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4108}
    +body: """
      > learnt\n
      \n
      learning… it’s extensive!
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 11
    +score: 0
    +lastActive: DateTime @1700011019 {#4492
      date: 2023-11-15 02:16:59.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@TCB13@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4497 …}
    +nested: Doctrine\ORM\PersistentCollection {#4503 …}
    +votes: Doctrine\ORM\PersistentCollection {#4499 …}
    +reports: Doctrine\ORM\PersistentCollection {#4504 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
    -id: 125767
    -bodyTs: "'extens':5 'learn':2 'learnt':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3773767"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700011019 {#4489
      date: 2023-11-15 02:16:59.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: "Here, a bit more for you: [tadeubento.com/…/systemd-hidden-gems-for-a-better…](https://tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 5
  +score: 0
  +lastActive: DateTime @1700043569 {#4593
    date: 2023-11-15 11:19:29.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4596 …}
  +nested: Doctrine\ORM\PersistentCollection {#4598 …}
  +votes: Doctrine\ORM\PersistentCollection {#4600 …}
  +reports: Doctrine\ORM\PersistentCollection {#4602 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4604 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4606 …}
  -id: 126600
  -bodyTs: "'/2023/systemd-hidden-gems-for-a-better-linux/)':11 '/systemd-hidden-gems-for-a-better':8 'bit':3 'tadeubento.com':7,10 'tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)':9"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5329106"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700043569 {#4594
    date: 2023-11-15 11:19:29.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
21 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
22 DENIED moderate
App\Entity\EntryComment {#4712
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4595
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4493
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4108
        +user: App\Entity\User {#4097 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: "Finally someone who learnt how to use systemd."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 21
        +score: 0
        +lastActive: DateTime @1700343203 {#4114
          date: 2023-11-18 22:33:23.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@luthis@lemmy.nz"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4113 …}
        +nested: Doctrine\ORM\PersistentCollection {#4112 …}
        +votes: Doctrine\ORM\PersistentCollection {#4103 …}
        +reports: Doctrine\ORM\PersistentCollection {#4106 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
        -id: 125278
        -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://lemmy.world/comment/5315426"
        +editedAt: null
        +createdAt: DateTimeImmutable @1700000538 {#4119
          date: 2023-11-14 23:22:18.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4108}
      +body: """
        > learnt\n
        \n
        learning… it’s extensive!
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 11
      +score: 0
      +lastActive: DateTime @1700011019 {#4492
        date: 2023-11-15 02:16:59.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
        "@TCB13@lemmy.world"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4497 …}
      +nested: Doctrine\ORM\PersistentCollection {#4503 …}
      +votes: Doctrine\ORM\PersistentCollection {#4499 …}
      +reports: Doctrine\ORM\PersistentCollection {#4504 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
      -id: 125767
      -bodyTs: "'extens':5 'learn':2 'learnt':1"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.nz/comment/3773767"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700011019 {#4489
        date: 2023-11-15 02:16:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4108}
    +body: "Here, a bit more for you: [tadeubento.com/…/systemd-hidden-gems-for-a-better…](https://tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1700043569 {#4593
      date: 2023-11-15 11:19:29.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@TCB13@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4596 …}
    +nested: Doctrine\ORM\PersistentCollection {#4598 …}
    +votes: Doctrine\ORM\PersistentCollection {#4600 …}
    +reports: Doctrine\ORM\PersistentCollection {#4602 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4604 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4606 …}
    -id: 126600
    -bodyTs: "'/2023/systemd-hidden-gems-for-a-better-linux/)':11 '/systemd-hidden-gems-for-a-better':8 'bit':3 'tadeubento.com':7,10 'tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)':9"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5329106"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700043569 {#4594
      date: 2023-11-15 11:19:29.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: """
    Woooah awesome thanks!\n
    \n
    There goes my whole day again on systemd…
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700079868 {#4710
    date: 2023-11-15 21:24:28.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4713 …}
  +nested: Doctrine\ORM\PersistentCollection {#4715 …}
  +votes: Doctrine\ORM\PersistentCollection {#4717 …}
  +reports: Doctrine\ORM\PersistentCollection {#4719 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4721 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4723 …}
  -id: 127969
  -bodyTs: "'awesom':2 'day':8 'goe':5 'systemd':11 'thank':3 'whole':7 'woooah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3790958"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700079868 {#4711
    date: 2023-11-15 21:24:28.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
23 DENIED edit
App\Entity\EntryComment {#4712
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4595
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4493
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4108
        +user: App\Entity\User {#4097 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: "Finally someone who learnt how to use systemd."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 21
        +score: 0
        +lastActive: DateTime @1700343203 {#4114
          date: 2023-11-18 22:33:23.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@luthis@lemmy.nz"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4113 …}
        +nested: Doctrine\ORM\PersistentCollection {#4112 …}
        +votes: Doctrine\ORM\PersistentCollection {#4103 …}
        +reports: Doctrine\ORM\PersistentCollection {#4106 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
        -id: 125278
        -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://lemmy.world/comment/5315426"
        +editedAt: null
        +createdAt: DateTimeImmutable @1700000538 {#4119
          date: 2023-11-14 23:22:18.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4108}
      +body: """
        > learnt\n
        \n
        learning… it’s extensive!
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 11
      +score: 0
      +lastActive: DateTime @1700011019 {#4492
        date: 2023-11-15 02:16:59.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
        "@TCB13@lemmy.world"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4497 …}
      +nested: Doctrine\ORM\PersistentCollection {#4503 …}
      +votes: Doctrine\ORM\PersistentCollection {#4499 …}
      +reports: Doctrine\ORM\PersistentCollection {#4504 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
      -id: 125767
      -bodyTs: "'extens':5 'learn':2 'learnt':1"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.nz/comment/3773767"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700011019 {#4489
        date: 2023-11-15 02:16:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4108}
    +body: "Here, a bit more for you: [tadeubento.com/…/systemd-hidden-gems-for-a-better…](https://tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1700043569 {#4593
      date: 2023-11-15 11:19:29.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@TCB13@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4596 …}
    +nested: Doctrine\ORM\PersistentCollection {#4598 …}
    +votes: Doctrine\ORM\PersistentCollection {#4600 …}
    +reports: Doctrine\ORM\PersistentCollection {#4602 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4604 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4606 …}
    -id: 126600
    -bodyTs: "'/2023/systemd-hidden-gems-for-a-better-linux/)':11 '/systemd-hidden-gems-for-a-better':8 'bit':3 'tadeubento.com':7,10 'tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)':9"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5329106"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700043569 {#4594
      date: 2023-11-15 11:19:29.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: """
    Woooah awesome thanks!\n
    \n
    There goes my whole day again on systemd…
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700079868 {#4710
    date: 2023-11-15 21:24:28.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4713 …}
  +nested: Doctrine\ORM\PersistentCollection {#4715 …}
  +votes: Doctrine\ORM\PersistentCollection {#4717 …}
  +reports: Doctrine\ORM\PersistentCollection {#4719 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4721 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4723 …}
  -id: 127969
  -bodyTs: "'awesom':2 'day':8 'goe':5 'systemd':11 'thank':3 'whole':7 'woooah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3790958"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700079868 {#4711
    date: 2023-11-15 21:24:28.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
24 DENIED moderate
App\Entity\EntryComment {#4712
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4595
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4493
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4108
        +user: App\Entity\User {#4097 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: "Finally someone who learnt how to use systemd."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 21
        +score: 0
        +lastActive: DateTime @1700343203 {#4114
          date: 2023-11-18 22:33:23.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@luthis@lemmy.nz"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4113 …}
        +nested: Doctrine\ORM\PersistentCollection {#4112 …}
        +votes: Doctrine\ORM\PersistentCollection {#4103 …}
        +reports: Doctrine\ORM\PersistentCollection {#4106 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
        -id: 125278
        -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://lemmy.world/comment/5315426"
        +editedAt: null
        +createdAt: DateTimeImmutable @1700000538 {#4119
          date: 2023-11-14 23:22:18.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4108}
      +body: """
        > learnt\n
        \n
        learning… it’s extensive!
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 11
      +score: 0
      +lastActive: DateTime @1700011019 {#4492
        date: 2023-11-15 02:16:59.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
        "@TCB13@lemmy.world"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4497 …}
      +nested: Doctrine\ORM\PersistentCollection {#4503 …}
      +votes: Doctrine\ORM\PersistentCollection {#4499 …}
      +reports: Doctrine\ORM\PersistentCollection {#4504 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
      -id: 125767
      -bodyTs: "'extens':5 'learn':2 'learnt':1"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.nz/comment/3773767"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700011019 {#4489
        date: 2023-11-15 02:16:59.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4108}
    +body: "Here, a bit more for you: [tadeubento.com/…/systemd-hidden-gems-for-a-better…](https://tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1700043569 {#4593
      date: 2023-11-15 11:19:29.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@TCB13@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4596 …}
    +nested: Doctrine\ORM\PersistentCollection {#4598 …}
    +votes: Doctrine\ORM\PersistentCollection {#4600 …}
    +reports: Doctrine\ORM\PersistentCollection {#4602 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4604 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4606 …}
    -id: 126600
    -bodyTs: "'/2023/systemd-hidden-gems-for-a-better-linux/)':11 '/systemd-hidden-gems-for-a-better':8 'bit':3 'tadeubento.com':7,10 'tadeubento.com/2023/systemd-hidden-gems-for-a-better-linux/)':9"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5329106"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700043569 {#4594
      date: 2023-11-15 11:19:29.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: """
    Woooah awesome thanks!\n
    \n
    There goes my whole day again on systemd…
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700079868 {#4710
    date: 2023-11-15 21:24:28.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4713 …}
  +nested: Doctrine\ORM\PersistentCollection {#4715 …}
  +votes: Doctrine\ORM\PersistentCollection {#4717 …}
  +reports: Doctrine\ORM\PersistentCollection {#4719 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4721 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4723 …}
  -id: 127969
  -bodyTs: "'awesom':2 'day':8 'goe':5 'systemd':11 'thank':3 'whole':7 'woooah':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3790958"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700079868 {#4711
    date: 2023-11-15 21:24:28.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
25 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
26 DENIED moderate
App\Entity\EntryComment {#4610
  +user: Proxies\__CG__\App\Entity\User {#4611 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4493
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4108
      +user: App\Entity\User {#4097 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Finally someone who learnt how to use systemd."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 21
      +score: 0
      +lastActive: DateTime @1700343203 {#4114
        date: 2023-11-18 22:33:23.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4113 …}
      +nested: Doctrine\ORM\PersistentCollection {#4112 …}
      +votes: Doctrine\ORM\PersistentCollection {#4103 …}
      +reports: Doctrine\ORM\PersistentCollection {#4106 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
      -id: 125278
      -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/5315426"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700000538 {#4119
        date: 2023-11-14 23:22:18.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4108}
    +body: """
      > learnt\n
      \n
      learning… it’s extensive!
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 11
    +score: 0
    +lastActive: DateTime @1700011019 {#4492
      date: 2023-11-15 02:16:59.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@TCB13@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4497 …}
    +nested: Doctrine\ORM\PersistentCollection {#4503 …}
    +votes: Doctrine\ORM\PersistentCollection {#4499 …}
    +reports: Doctrine\ORM\PersistentCollection {#4504 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
    -id: 125767
    -bodyTs: "'extens':5 'learn':2 'learnt':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3773767"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700011019 {#4489
      date: 2023-11-15 02:16:59.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: "We really need a ConfidentlyIncorrect community on Lemmy."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700035821 {#4608
    date: 2023-11-15 09:10:21.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4612 …}
  +nested: Doctrine\ORM\PersistentCollection {#4614 …}
  +votes: Doctrine\ORM\PersistentCollection {#4616 …}
  +reports: Doctrine\ORM\PersistentCollection {#4618 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4620 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4622 …}
  -id: 126392
  -bodyTs: "'communiti':6 'confidentlyincorrect':5 'lemmi':8 'need':3 'realli':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/6151716"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700035821 {#4609
    date: 2023-11-15 09:10:21.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
27 DENIED edit
App\Entity\EntryComment {#4610
  +user: Proxies\__CG__\App\Entity\User {#4611 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4493
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4108
      +user: App\Entity\User {#4097 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Finally someone who learnt how to use systemd."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 21
      +score: 0
      +lastActive: DateTime @1700343203 {#4114
        date: 2023-11-18 22:33:23.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4113 …}
      +nested: Doctrine\ORM\PersistentCollection {#4112 …}
      +votes: Doctrine\ORM\PersistentCollection {#4103 …}
      +reports: Doctrine\ORM\PersistentCollection {#4106 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
      -id: 125278
      -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/5315426"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700000538 {#4119
        date: 2023-11-14 23:22:18.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4108}
    +body: """
      > learnt\n
      \n
      learning… it’s extensive!
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 11
    +score: 0
    +lastActive: DateTime @1700011019 {#4492
      date: 2023-11-15 02:16:59.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@TCB13@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4497 …}
    +nested: Doctrine\ORM\PersistentCollection {#4503 …}
    +votes: Doctrine\ORM\PersistentCollection {#4499 …}
    +reports: Doctrine\ORM\PersistentCollection {#4504 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
    -id: 125767
    -bodyTs: "'extens':5 'learn':2 'learnt':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3773767"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700011019 {#4489
      date: 2023-11-15 02:16:59.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: "We really need a ConfidentlyIncorrect community on Lemmy."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700035821 {#4608
    date: 2023-11-15 09:10:21.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4612 …}
  +nested: Doctrine\ORM\PersistentCollection {#4614 …}
  +votes: Doctrine\ORM\PersistentCollection {#4616 …}
  +reports: Doctrine\ORM\PersistentCollection {#4618 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4620 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4622 …}
  -id: 126392
  -bodyTs: "'communiti':6 'confidentlyincorrect':5 'lemmi':8 'need':3 'realli':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/6151716"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700035821 {#4609
    date: 2023-11-15 09:10:21.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
28 DENIED moderate
App\Entity\EntryComment {#4610
  +user: Proxies\__CG__\App\Entity\User {#4611 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4493
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4108
      +user: App\Entity\User {#4097 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Finally someone who learnt how to use systemd."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 21
      +score: 0
      +lastActive: DateTime @1700343203 {#4114
        date: 2023-11-18 22:33:23.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4113 …}
      +nested: Doctrine\ORM\PersistentCollection {#4112 …}
      +votes: Doctrine\ORM\PersistentCollection {#4103 …}
      +reports: Doctrine\ORM\PersistentCollection {#4106 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
      -id: 125278
      -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/5315426"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700000538 {#4119
        date: 2023-11-14 23:22:18.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4108}
    +body: """
      > learnt\n
      \n
      learning… it’s extensive!
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 11
    +score: 0
    +lastActive: DateTime @1700011019 {#4492
      date: 2023-11-15 02:16:59.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@TCB13@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4497 …}
    +nested: Doctrine\ORM\PersistentCollection {#4503 …}
    +votes: Doctrine\ORM\PersistentCollection {#4499 …}
    +reports: Doctrine\ORM\PersistentCollection {#4504 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4506 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4508 …}
    -id: 125767
    -bodyTs: "'extens':5 'learn':2 'learnt':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3773767"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700011019 {#4489
      date: 2023-11-15 02:16:59.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4108}
  +body: "We really need a ConfidentlyIncorrect community on Lemmy."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700035821 {#4608
    date: 2023-11-15 09:10:21.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4612 …}
  +nested: Doctrine\ORM\PersistentCollection {#4614 …}
  +votes: Doctrine\ORM\PersistentCollection {#4616 …}
  +reports: Doctrine\ORM\PersistentCollection {#4618 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4620 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4622 …}
  -id: 126392
  -bodyTs: "'communiti':6 'confidentlyincorrect':5 'lemmi':8 'need':3 'realli':2"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/6151716"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700035821 {#4609
    date: 2023-11-15 09:10:21.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
29 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
30 DENIED moderate
App\Entity\EntryComment {#4677
  +user: Proxies\__CG__\App\Entity\User {#4681 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4627 …}
  +root: App\Entity\EntryComment {#4108
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Finally someone who learnt how to use systemd."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 21
    +score: 0
    +lastActive: DateTime @1700343203 {#4114
      date: 2023-11-18 22:33:23.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4113 …}
    +nested: Doctrine\ORM\PersistentCollection {#4112 …}
    +votes: Doctrine\ORM\PersistentCollection {#4103 …}
    +reports: Doctrine\ORM\PersistentCollection {#4106 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
    -id: 125278
    -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5315426"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700000538 {#4119
      date: 2023-11-14 23:22:18.0 +01:00
    }
  }
  +body: "This (and “tyre”) is why we won the war."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700036286 {#4676
    date: 2023-11-15 09:18:06.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
    "@skullgiver@popplesburger.hilciferous.nl"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4686 …}
  +nested: Doctrine\ORM\PersistentCollection {#4682 …}
  +votes: Doctrine\ORM\PersistentCollection {#4684 …}
  +reports: Doctrine\ORM\PersistentCollection {#4689 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4691 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4693 …}
  -id: 126401
  -bodyTs: "'tyre':3 'war':9 'won':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.one/comment/4717161"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700036286 {#4673
    date: 2023-11-15 09:18:06.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
31 DENIED edit
App\Entity\EntryComment {#4677
  +user: Proxies\__CG__\App\Entity\User {#4681 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4627 …}
  +root: App\Entity\EntryComment {#4108
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Finally someone who learnt how to use systemd."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 21
    +score: 0
    +lastActive: DateTime @1700343203 {#4114
      date: 2023-11-18 22:33:23.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4113 …}
    +nested: Doctrine\ORM\PersistentCollection {#4112 …}
    +votes: Doctrine\ORM\PersistentCollection {#4103 …}
    +reports: Doctrine\ORM\PersistentCollection {#4106 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
    -id: 125278
    -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5315426"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700000538 {#4119
      date: 2023-11-14 23:22:18.0 +01:00
    }
  }
  +body: "This (and “tyre”) is why we won the war."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700036286 {#4676
    date: 2023-11-15 09:18:06.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
    "@skullgiver@popplesburger.hilciferous.nl"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4686 …}
  +nested: Doctrine\ORM\PersistentCollection {#4682 …}
  +votes: Doctrine\ORM\PersistentCollection {#4684 …}
  +reports: Doctrine\ORM\PersistentCollection {#4689 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4691 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4693 …}
  -id: 126401
  -bodyTs: "'tyre':3 'war':9 'won':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.one/comment/4717161"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700036286 {#4673
    date: 2023-11-15 09:18:06.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
32 DENIED moderate
App\Entity\EntryComment {#4677
  +user: Proxies\__CG__\App\Entity\User {#4681 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4627 …}
  +root: App\Entity\EntryComment {#4108
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Finally someone who learnt how to use systemd."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 21
    +score: 0
    +lastActive: DateTime @1700343203 {#4114
      date: 2023-11-18 22:33:23.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4113 …}
    +nested: Doctrine\ORM\PersistentCollection {#4112 …}
    +votes: Doctrine\ORM\PersistentCollection {#4103 …}
    +reports: Doctrine\ORM\PersistentCollection {#4106 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
    -id: 125278
    -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5315426"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700000538 {#4119
      date: 2023-11-14 23:22:18.0 +01:00
    }
  }
  +body: "This (and “tyre”) is why we won the war."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700036286 {#4676
    date: 2023-11-15 09:18:06.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
    "@skullgiver@popplesburger.hilciferous.nl"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4686 …}
  +nested: Doctrine\ORM\PersistentCollection {#4682 …}
  +votes: Doctrine\ORM\PersistentCollection {#4684 …}
  +reports: Doctrine\ORM\PersistentCollection {#4689 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4691 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4693 …}
  -id: 126401
  -bodyTs: "'tyre':3 'war':9 'won':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.one/comment/4717161"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700036286 {#4673
    date: 2023-11-15 09:18:06.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
33 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
34 DENIED moderate
App\Entity\EntryComment {#4697
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4627 …}
  +root: App\Entity\EntryComment {#4108
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Finally someone who learnt how to use systemd."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 21
    +score: 0
    +lastActive: DateTime @1700343203 {#4114
      date: 2023-11-18 22:33:23.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4113 …}
    +nested: Doctrine\ORM\PersistentCollection {#4112 …}
    +votes: Doctrine\ORM\PersistentCollection {#4103 …}
    +reports: Doctrine\ORM\PersistentCollection {#4106 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
    -id: 125278
    -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5315426"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700000538 {#4119
      date: 2023-11-14 23:22:18.0 +01:00
    }
  }
  +body: "Yes but… I am learn*ING*??"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1700040587 {#4695
    date: 2023-11-15 10:29:47.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
    "@skullgiver@popplesburger.hilciferous.nl"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4698 …}
  +nested: Doctrine\ORM\PersistentCollection {#4700 …}
  +votes: Doctrine\ORM\PersistentCollection {#4702 …}
  +reports: Doctrine\ORM\PersistentCollection {#4704 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4706 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4708 …}
  -id: 126513
  -bodyTs: "'ing':6 'learn':5 'yes':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3779666"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700040587 {#4696
    date: 2023-11-15 10:29:47.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
35 DENIED edit
App\Entity\EntryComment {#4697
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4627 …}
  +root: App\Entity\EntryComment {#4108
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Finally someone who learnt how to use systemd."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 21
    +score: 0
    +lastActive: DateTime @1700343203 {#4114
      date: 2023-11-18 22:33:23.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4113 …}
    +nested: Doctrine\ORM\PersistentCollection {#4112 …}
    +votes: Doctrine\ORM\PersistentCollection {#4103 …}
    +reports: Doctrine\ORM\PersistentCollection {#4106 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
    -id: 125278
    -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5315426"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700000538 {#4119
      date: 2023-11-14 23:22:18.0 +01:00
    }
  }
  +body: "Yes but… I am learn*ING*??"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1700040587 {#4695
    date: 2023-11-15 10:29:47.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
    "@skullgiver@popplesburger.hilciferous.nl"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4698 …}
  +nested: Doctrine\ORM\PersistentCollection {#4700 …}
  +votes: Doctrine\ORM\PersistentCollection {#4702 …}
  +reports: Doctrine\ORM\PersistentCollection {#4704 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4706 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4708 …}
  -id: 126513
  -bodyTs: "'ing':6 'learn':5 'yes':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3779666"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700040587 {#4696
    date: 2023-11-15 10:29:47.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
36 DENIED moderate
App\Entity\EntryComment {#4697
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4627 …}
  +root: App\Entity\EntryComment {#4108
    +user: App\Entity\User {#4097 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Finally someone who learnt how to use systemd."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 21
    +score: 0
    +lastActive: DateTime @1700343203 {#4114
      date: 2023-11-18 22:33:23.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4113 …}
    +nested: Doctrine\ORM\PersistentCollection {#4112 …}
    +votes: Doctrine\ORM\PersistentCollection {#4103 …}
    +reports: Doctrine\ORM\PersistentCollection {#4106 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4101 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4099 …}
    -id: 125278
    -bodyTs: "'final':1 'learnt':4 'someon':2 'systemd':8 'use':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5315426"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700000538 {#4119
      date: 2023-11-14 23:22:18.0 +01:00
    }
  }
  +body: "Yes but… I am learn*ING*??"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1700040587 {#4695
    date: 2023-11-15 10:29:47.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@TCB13@lemmy.world"
    "@skullgiver@popplesburger.hilciferous.nl"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4698 …}
  +nested: Doctrine\ORM\PersistentCollection {#4700 …}
  +votes: Doctrine\ORM\PersistentCollection {#4702 …}
  +reports: Doctrine\ORM\PersistentCollection {#4704 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4706 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4708 …}
  -id: 126513
  -bodyTs: "'ing':6 'learn':5 'yes':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3779666"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700040587 {#4696
    date: 2023-11-15 10:29:47.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
37 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
38 DENIED moderate
App\Entity\EntryComment {#4195
  +user: App\Entity\User {#4208 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 10
  +score: 0
  +lastActive: DateTime @1700343463 {#4190
    date: 2023-11-18 22:37:43.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4196 …}
  +nested: Doctrine\ORM\PersistentCollection {#4198 …}
  +votes: Doctrine\ORM\PersistentCollection {#4200 …}
  +reports: Doctrine\ORM\PersistentCollection {#4202 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
  -id: 125418
  -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.nu/comment/3717867"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700002524 {#4191
    date: 2023-11-14 23:55:24.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
39 DENIED edit
App\Entity\EntryComment {#4195
  +user: App\Entity\User {#4208 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 10
  +score: 0
  +lastActive: DateTime @1700343463 {#4190
    date: 2023-11-18 22:37:43.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4196 …}
  +nested: Doctrine\ORM\PersistentCollection {#4198 …}
  +votes: Doctrine\ORM\PersistentCollection {#4200 …}
  +reports: Doctrine\ORM\PersistentCollection {#4202 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
  -id: 125418
  -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.nu/comment/3717867"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700002524 {#4191
    date: 2023-11-14 23:55:24.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
40 DENIED moderate
App\Entity\EntryComment {#4195
  +user: App\Entity\User {#4208 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 10
  +score: 0
  +lastActive: DateTime @1700343463 {#4190
    date: 2023-11-18 22:37:43.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4196 …}
  +nested: Doctrine\ORM\PersistentCollection {#4198 …}
  +votes: Doctrine\ORM\PersistentCollection {#4200 …}
  +reports: Doctrine\ORM\PersistentCollection {#4202 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
  -id: 125418
  -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.nu/comment/3717867"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700002524 {#4191
    date: 2023-11-14 23:55:24.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
41 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
42 DENIED moderate
App\Entity\EntryComment {#4513
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4208 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 10
    +score: 0
    +lastActive: DateTime @1700343463 {#4190
      date: 2023-11-18 22:37:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4196 …}
    +nested: Doctrine\ORM\PersistentCollection {#4198 …}
    +votes: Doctrine\ORM\PersistentCollection {#4200 …}
    +reports: Doctrine\ORM\PersistentCollection {#4202 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
    -id: 125418
    -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nu/comment/3717867"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700002524 {#4191
      date: 2023-11-14 23:55:24.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4195}
  +body: """
    Ahead of you with the non-default port, I just didn’t use it in the example.\n
    \n
    But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1700010992 {#4510
    date: 2023-11-15 02:16:32.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@kungen@feddit.nu"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4514 …}
  +nested: Doctrine\ORM\PersistentCollection {#4516 …}
  +votes: Doctrine\ORM\PersistentCollection {#4518 …}
  +reports: Doctrine\ORM\PersistentCollection {#4520 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4522 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4524 …}
  -id: 125766
  -bodyTs: "'ahead':1 'alway':27 'connect':29 'default':8 'destin':22 'didn':12 'exampl':18 'ip':23 'mean':41 'misunderstand':38 'non':7 'non-default':6 'one':34 'port':9 'remot':30 'use':14 'won':25"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3773762"
  +editedAt: DateTimeImmutable @1700262890 {#4511
    date: 2023-11-18 00:14:50.0 +01:00
  }
  +createdAt: DateTimeImmutable @1700010992 {#4512
    date: 2023-11-15 02:16:32.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
43 DENIED edit
App\Entity\EntryComment {#4513
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4208 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 10
    +score: 0
    +lastActive: DateTime @1700343463 {#4190
      date: 2023-11-18 22:37:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4196 …}
    +nested: Doctrine\ORM\PersistentCollection {#4198 …}
    +votes: Doctrine\ORM\PersistentCollection {#4200 …}
    +reports: Doctrine\ORM\PersistentCollection {#4202 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
    -id: 125418
    -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nu/comment/3717867"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700002524 {#4191
      date: 2023-11-14 23:55:24.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4195}
  +body: """
    Ahead of you with the non-default port, I just didn’t use it in the example.\n
    \n
    But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1700010992 {#4510
    date: 2023-11-15 02:16:32.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@kungen@feddit.nu"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4514 …}
  +nested: Doctrine\ORM\PersistentCollection {#4516 …}
  +votes: Doctrine\ORM\PersistentCollection {#4518 …}
  +reports: Doctrine\ORM\PersistentCollection {#4520 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4522 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4524 …}
  -id: 125766
  -bodyTs: "'ahead':1 'alway':27 'connect':29 'default':8 'destin':22 'didn':12 'exampl':18 'ip':23 'mean':41 'misunderstand':38 'non':7 'non-default':6 'one':34 'port':9 'remot':30 'use':14 'won':25"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3773762"
  +editedAt: DateTimeImmutable @1700262890 {#4511
    date: 2023-11-18 00:14:50.0 +01:00
  }
  +createdAt: DateTimeImmutable @1700010992 {#4512
    date: 2023-11-15 02:16:32.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
44 DENIED moderate
App\Entity\EntryComment {#4513
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4195
    +user: App\Entity\User {#4208 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 10
    +score: 0
    +lastActive: DateTime @1700343463 {#4190
      date: 2023-11-18 22:37:43.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4196 …}
    +nested: Doctrine\ORM\PersistentCollection {#4198 …}
    +votes: Doctrine\ORM\PersistentCollection {#4200 …}
    +reports: Doctrine\ORM\PersistentCollection {#4202 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
    -id: 125418
    -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nu/comment/3717867"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700002524 {#4191
      date: 2023-11-14 23:55:24.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4195}
  +body: """
    Ahead of you with the non-default port, I just didn’t use it in the example.\n
    \n
    But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1700010992 {#4510
    date: 2023-11-15 02:16:32.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@kungen@feddit.nu"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4514 …}
  +nested: Doctrine\ORM\PersistentCollection {#4516 …}
  +votes: Doctrine\ORM\PersistentCollection {#4518 …}
  +reports: Doctrine\ORM\PersistentCollection {#4520 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4522 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4524 …}
  -id: 125766
  -bodyTs: "'ahead':1 'alway':27 'connect':29 'default':8 'destin':22 'didn':12 'exampl':18 'ip':23 'mean':41 'misunderstand':38 'non':7 'non-default':6 'one':34 'port':9 'remot':30 'use':14 'won':25"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3773762"
  +editedAt: DateTimeImmutable @1700262890 {#4511
    date: 2023-11-18 00:14:50.0 +01:00
  }
  +createdAt: DateTimeImmutable @1700010992 {#4512
    date: 2023-11-15 02:16:32.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
45 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
46 DENIED moderate
App\Entity\EntryComment {#4582
  +user: App\Entity\User {#4208 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4513
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4195
      +user: App\Entity\User {#4208 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 10
      +score: 0
      +lastActive: DateTime @1700343463 {#4190
        date: 2023-11-18 22:37:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4196 …}
      +nested: Doctrine\ORM\PersistentCollection {#4198 …}
      +votes: Doctrine\ORM\PersistentCollection {#4200 …}
      +reports: Doctrine\ORM\PersistentCollection {#4202 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 125418
      -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://feddit.nu/comment/3717867"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700002524 {#4191
        date: 2023-11-14 23:55:24.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4195}
    +body: """
      Ahead of you with the non-default port, I just didn’t use it in the example.\n
      \n
      But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1700010992 {#4510
      date: 2023-11-15 02:16:32.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@kungen@feddit.nu"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4514 …}
    +nested: Doctrine\ORM\PersistentCollection {#4516 …}
    +votes: Doctrine\ORM\PersistentCollection {#4518 …}
    +reports: Doctrine\ORM\PersistentCollection {#4520 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4522 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4524 …}
    -id: 125766
    -bodyTs: "'ahead':1 'alway':27 'connect':29 'default':8 'destin':22 'didn':12 'exampl':18 'ip':23 'mean':41 'misunderstand':38 'non':7 'non-default':6 'one':34 'port':9 'remot':30 'use':14 'won':25"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3773762"
    +editedAt: DateTimeImmutable @1700262890 {#4511
      date: 2023-11-18 00:14:50.0 +01:00
    }
    +createdAt: DateTimeImmutable @1700010992 {#4512
      date: 2023-11-15 02:16:32.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4195}
  +body: """
    Aha, I think I misunderstood your situation then? I assumed you’re running these routing rules on your client machine, so you’re able to access your ssh server without it going over the VPN – not that your server is running a VPN active that blocks external connections…?\n
    \n
    But if I didn’t misunderstand, I’d mean the (assumingly static) ssh server’s IP.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700048722 {#4583
    date: 2023-11-15 12:45:22.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@kungen@feddit.nu"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4578 …}
  +nested: Doctrine\ORM\PersistentCollection {#4573 …}
  +votes: Doctrine\ORM\PersistentCollection {#4577 …}
  +reports: Doctrine\ORM\PersistentCollection {#4587 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4589 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4591 …}
  -id: 126761
  -bodyTs: "'abl':24 'access':26 'activ':44 'aha':1 'assum':10,59 'block':46 'client':19 'connect':48 'd':56 'didn':52 'extern':47 'go':32 'ip':64 'machin':20 'mean':57 'misunderstand':54 'misunderstood':5 're':12,23 'rout':15 'rule':16 'run':13,41 'server':29,39,62 'situat':7 'ssh':28,61 'static':60 'think':3 'vpn':35,43 'without':30"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.nu/comment/3731873"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700048722 {#4586
    date: 2023-11-15 12:45:22.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
47 DENIED edit
App\Entity\EntryComment {#4582
  +user: App\Entity\User {#4208 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4513
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4195
      +user: App\Entity\User {#4208 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 10
      +score: 0
      +lastActive: DateTime @1700343463 {#4190
        date: 2023-11-18 22:37:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4196 …}
      +nested: Doctrine\ORM\PersistentCollection {#4198 …}
      +votes: Doctrine\ORM\PersistentCollection {#4200 …}
      +reports: Doctrine\ORM\PersistentCollection {#4202 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 125418
      -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://feddit.nu/comment/3717867"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700002524 {#4191
        date: 2023-11-14 23:55:24.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4195}
    +body: """
      Ahead of you with the non-default port, I just didn’t use it in the example.\n
      \n
      But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1700010992 {#4510
      date: 2023-11-15 02:16:32.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@kungen@feddit.nu"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4514 …}
    +nested: Doctrine\ORM\PersistentCollection {#4516 …}
    +votes: Doctrine\ORM\PersistentCollection {#4518 …}
    +reports: Doctrine\ORM\PersistentCollection {#4520 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4522 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4524 …}
    -id: 125766
    -bodyTs: "'ahead':1 'alway':27 'connect':29 'default':8 'destin':22 'didn':12 'exampl':18 'ip':23 'mean':41 'misunderstand':38 'non':7 'non-default':6 'one':34 'port':9 'remot':30 'use':14 'won':25"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3773762"
    +editedAt: DateTimeImmutable @1700262890 {#4511
      date: 2023-11-18 00:14:50.0 +01:00
    }
    +createdAt: DateTimeImmutable @1700010992 {#4512
      date: 2023-11-15 02:16:32.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4195}
  +body: """
    Aha, I think I misunderstood your situation then? I assumed you’re running these routing rules on your client machine, so you’re able to access your ssh server without it going over the VPN – not that your server is running a VPN active that blocks external connections…?\n
    \n
    But if I didn’t misunderstand, I’d mean the (assumingly static) ssh server’s IP.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700048722 {#4583
    date: 2023-11-15 12:45:22.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@kungen@feddit.nu"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4578 …}
  +nested: Doctrine\ORM\PersistentCollection {#4573 …}
  +votes: Doctrine\ORM\PersistentCollection {#4577 …}
  +reports: Doctrine\ORM\PersistentCollection {#4587 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4589 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4591 …}
  -id: 126761
  -bodyTs: "'abl':24 'access':26 'activ':44 'aha':1 'assum':10,59 'block':46 'client':19 'connect':48 'd':56 'didn':52 'extern':47 'go':32 'ip':64 'machin':20 'mean':57 'misunderstand':54 'misunderstood':5 're':12,23 'rout':15 'rule':16 'run':13,41 'server':29,39,62 'situat':7 'ssh':28,61 'static':60 'think':3 'vpn':35,43 'without':30"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.nu/comment/3731873"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700048722 {#4586
    date: 2023-11-15 12:45:22.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
48 DENIED moderate
App\Entity\EntryComment {#4582
  +user: App\Entity\User {#4208 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4513
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4195
      +user: App\Entity\User {#4208 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 10
      +score: 0
      +lastActive: DateTime @1700343463 {#4190
        date: 2023-11-18 22:37:43.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4196 …}
      +nested: Doctrine\ORM\PersistentCollection {#4198 …}
      +votes: Doctrine\ORM\PersistentCollection {#4200 …}
      +reports: Doctrine\ORM\PersistentCollection {#4202 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
      -id: 125418
      -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://feddit.nu/comment/3717867"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700002524 {#4191
        date: 2023-11-14 23:55:24.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4195}
    +body: """
      Ahead of you with the non-default port, I just didn’t use it in the example.\n
      \n
      But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1700010992 {#4510
      date: 2023-11-15 02:16:32.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@kungen@feddit.nu"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4514 …}
    +nested: Doctrine\ORM\PersistentCollection {#4516 …}
    +votes: Doctrine\ORM\PersistentCollection {#4518 …}
    +reports: Doctrine\ORM\PersistentCollection {#4520 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4522 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4524 …}
    -id: 125766
    -bodyTs: "'ahead':1 'alway':27 'connect':29 'default':8 'destin':22 'didn':12 'exampl':18 'ip':23 'mean':41 'misunderstand':38 'non':7 'non-default':6 'one':34 'port':9 'remot':30 'use':14 'won':25"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3773762"
    +editedAt: DateTimeImmutable @1700262890 {#4511
      date: 2023-11-18 00:14:50.0 +01:00
    }
    +createdAt: DateTimeImmutable @1700010992 {#4512
      date: 2023-11-15 02:16:32.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4195}
  +body: """
    Aha, I think I misunderstood your situation then? I assumed you’re running these routing rules on your client machine, so you’re able to access your ssh server without it going over the VPN – not that your server is running a VPN active that blocks external connections…?\n
    \n
    But if I didn’t misunderstand, I’d mean the (assumingly static) ssh server’s IP.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700048722 {#4583
    date: 2023-11-15 12:45:22.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@kungen@feddit.nu"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4578 …}
  +nested: Doctrine\ORM\PersistentCollection {#4573 …}
  +votes: Doctrine\ORM\PersistentCollection {#4577 …}
  +reports: Doctrine\ORM\PersistentCollection {#4587 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4589 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4591 …}
  -id: 126761
  -bodyTs: "'abl':24 'access':26 'activ':44 'aha':1 'assum':10,59 'block':46 'client':19 'connect':48 'd':56 'didn':52 'extern':47 'go':32 'ip':64 'machin':20 'mean':57 'misunderstand':54 'misunderstood':5 're':12,23 'rout':15 'rule':16 'run':13,41 'server':29,39,62 'situat':7 'ssh':28,61 'static':60 'think':3 'vpn':35,43 'without':30"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.nu/comment/3731873"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700048722 {#4586
    date: 2023-11-15 12:45:22.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
49 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
50 DENIED moderate
App\Entity\EntryComment {#4727
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4582
    +user: App\Entity\User {#4208 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4513
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4195
        +user: App\Entity\User {#4208 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 10
        +score: 0
        +lastActive: DateTime @1700343463 {#4190
          date: 2023-11-18 22:37:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@luthis@lemmy.nz"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4196 …}
        +nested: Doctrine\ORM\PersistentCollection {#4198 …}
        +votes: Doctrine\ORM\PersistentCollection {#4200 …}
        +reports: Doctrine\ORM\PersistentCollection {#4202 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
        -id: 125418
        -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nu/comment/3717867"
        +editedAt: null
        +createdAt: DateTimeImmutable @1700002524 {#4191
          date: 2023-11-14 23:55:24.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4195}
      +body: """
        Ahead of you with the non-default port, I just didn’t use it in the example.\n
        \n
        But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1700010992 {#4510
        date: 2023-11-15 02:16:32.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
        "@kungen@feddit.nu"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4514 …}
      +nested: Doctrine\ORM\PersistentCollection {#4516 …}
      +votes: Doctrine\ORM\PersistentCollection {#4518 …}
      +reports: Doctrine\ORM\PersistentCollection {#4520 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4522 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4524 …}
      -id: 125766
      -bodyTs: "'ahead':1 'alway':27 'connect':29 'default':8 'destin':22 'didn':12 'exampl':18 'ip':23 'mean':41 'misunderstand':38 'non':7 'non-default':6 'one':34 'port':9 'remot':30 'use':14 'won':25"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.nz/comment/3773762"
      +editedAt: DateTimeImmutable @1700262890 {#4511
        date: 2023-11-18 00:14:50.0 +01:00
      }
      +createdAt: DateTimeImmutable @1700010992 {#4512
        date: 2023-11-15 02:16:32.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4195}
    +body: """
      Aha, I think I misunderstood your situation then? I assumed you’re running these routing rules on your client machine, so you’re able to access your ssh server without it going over the VPN – not that your server is running a VPN active that blocks external connections…?\n
      \n
      But if I didn’t misunderstand, I’d mean the (assumingly static) ssh server’s IP.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1700048722 {#4583
      date: 2023-11-15 12:45:22.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@kungen@feddit.nu"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4578 …}
    +nested: Doctrine\ORM\PersistentCollection {#4573 …}
    +votes: Doctrine\ORM\PersistentCollection {#4577 …}
    +reports: Doctrine\ORM\PersistentCollection {#4587 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4589 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4591 …}
    -id: 126761
    -bodyTs: "'abl':24 'access':26 'activ':44 'aha':1 'assum':10,59 'block':46 'client':19 'connect':48 'd':56 'didn':52 'extern':47 'go':32 'ip':64 'machin':20 'mean':57 'misunderstand':54 'misunderstood':5 're':12,23 'rout':15 'rule':16 'run':13,41 'server':29,39,62 'situat':7 'ssh':28,61 'static':60 'think':3 'vpn':35,43 'without':30"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nu/comment/3731873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700048722 {#4586
      date: 2023-11-15 12:45:22.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4195}
  +body: """
    No it’s the second one; server (home pc) is running ProtonVPN and there is a default route that makes all (ie ssh replies) traffic go through the VPN.\n
    \n
    I added some clarification, but basically this sets up a port-based default route to the home router instead of the VPN, so that SSH etc works.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700080103 {#4725
    date: 2023-11-15 21:28:23.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@kungen@feddit.nu"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4728 …}
  +nested: Doctrine\ORM\PersistentCollection {#4730 …}
  +votes: Doctrine\ORM\PersistentCollection {#4732 …}
  +reports: Doctrine\ORM\PersistentCollection {#4734 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4736 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4738 …}
  -id: 127983
  -bodyTs: "'ad':31 'base':42 'basic':35 'clarif':33 'default':17,43 'etc':56 'go':26 'home':8,47 'ie':22 'instead':49 'make':20 'one':6 'pc':9 'port':41 'port-bas':40 'protonvpn':12 'repli':24 'rout':18,44 'router':48 'run':11 'second':5 'server':7 'set':37 'ssh':23,55 'traffic':25 'vpn':29,52 'work':57"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3791071"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700080103 {#4726
    date: 2023-11-15 21:28:23.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
51 DENIED edit
App\Entity\EntryComment {#4727
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4582
    +user: App\Entity\User {#4208 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4513
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4195
        +user: App\Entity\User {#4208 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 10
        +score: 0
        +lastActive: DateTime @1700343463 {#4190
          date: 2023-11-18 22:37:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@luthis@lemmy.nz"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4196 …}
        +nested: Doctrine\ORM\PersistentCollection {#4198 …}
        +votes: Doctrine\ORM\PersistentCollection {#4200 …}
        +reports: Doctrine\ORM\PersistentCollection {#4202 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
        -id: 125418
        -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nu/comment/3717867"
        +editedAt: null
        +createdAt: DateTimeImmutable @1700002524 {#4191
          date: 2023-11-14 23:55:24.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4195}
      +body: """
        Ahead of you with the non-default port, I just didn’t use it in the example.\n
        \n
        But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1700010992 {#4510
        date: 2023-11-15 02:16:32.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
        "@kungen@feddit.nu"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4514 …}
      +nested: Doctrine\ORM\PersistentCollection {#4516 …}
      +votes: Doctrine\ORM\PersistentCollection {#4518 …}
      +reports: Doctrine\ORM\PersistentCollection {#4520 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4522 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4524 …}
      -id: 125766
      -bodyTs: "'ahead':1 'alway':27 'connect':29 'default':8 'destin':22 'didn':12 'exampl':18 'ip':23 'mean':41 'misunderstand':38 'non':7 'non-default':6 'one':34 'port':9 'remot':30 'use':14 'won':25"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.nz/comment/3773762"
      +editedAt: DateTimeImmutable @1700262890 {#4511
        date: 2023-11-18 00:14:50.0 +01:00
      }
      +createdAt: DateTimeImmutable @1700010992 {#4512
        date: 2023-11-15 02:16:32.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4195}
    +body: """
      Aha, I think I misunderstood your situation then? I assumed you’re running these routing rules on your client machine, so you’re able to access your ssh server without it going over the VPN – not that your server is running a VPN active that blocks external connections…?\n
      \n
      But if I didn’t misunderstand, I’d mean the (assumingly static) ssh server’s IP.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1700048722 {#4583
      date: 2023-11-15 12:45:22.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@kungen@feddit.nu"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4578 …}
    +nested: Doctrine\ORM\PersistentCollection {#4573 …}
    +votes: Doctrine\ORM\PersistentCollection {#4577 …}
    +reports: Doctrine\ORM\PersistentCollection {#4587 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4589 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4591 …}
    -id: 126761
    -bodyTs: "'abl':24 'access':26 'activ':44 'aha':1 'assum':10,59 'block':46 'client':19 'connect':48 'd':56 'didn':52 'extern':47 'go':32 'ip':64 'machin':20 'mean':57 'misunderstand':54 'misunderstood':5 're':12,23 'rout':15 'rule':16 'run':13,41 'server':29,39,62 'situat':7 'ssh':28,61 'static':60 'think':3 'vpn':35,43 'without':30"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nu/comment/3731873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700048722 {#4586
      date: 2023-11-15 12:45:22.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4195}
  +body: """
    No it’s the second one; server (home pc) is running ProtonVPN and there is a default route that makes all (ie ssh replies) traffic go through the VPN.\n
    \n
    I added some clarification, but basically this sets up a port-based default route to the home router instead of the VPN, so that SSH etc works.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700080103 {#4725
    date: 2023-11-15 21:28:23.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@kungen@feddit.nu"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4728 …}
  +nested: Doctrine\ORM\PersistentCollection {#4730 …}
  +votes: Doctrine\ORM\PersistentCollection {#4732 …}
  +reports: Doctrine\ORM\PersistentCollection {#4734 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4736 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4738 …}
  -id: 127983
  -bodyTs: "'ad':31 'base':42 'basic':35 'clarif':33 'default':17,43 'etc':56 'go':26 'home':8,47 'ie':22 'instead':49 'make':20 'one':6 'pc':9 'port':41 'port-bas':40 'protonvpn':12 'repli':24 'rout':18,44 'router':48 'run':11 'second':5 'server':7 'set':37 'ssh':23,55 'traffic':25 'vpn':29,52 'work':57"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3791071"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700080103 {#4726
    date: 2023-11-15 21:28:23.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
52 DENIED moderate
App\Entity\EntryComment {#4727
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4582
    +user: App\Entity\User {#4208 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4513
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4195
        +user: App\Entity\User {#4208 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: "If you’re looking for more improvements, I’d recommend using a non-default SSH port and to include the destination IP in the rules."
        +lang: "en"
        +isAdult: false
        +favouriteCount: 10
        +score: 0
        +lastActive: DateTime @1700343463 {#4190
          date: 2023-11-18 22:37:43.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@luthis@lemmy.nz"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4196 …}
        +nested: Doctrine\ORM\PersistentCollection {#4198 …}
        +votes: Doctrine\ORM\PersistentCollection {#4200 …}
        +reports: Doctrine\ORM\PersistentCollection {#4202 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4204 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4206 …}
        -id: 125418
        -bodyTs: "'d':9 'default':15 'destin':22 'improv':7 'includ':20 'ip':23 'look':4 'non':14 'non-default':13 'port':17 're':3 'recommend':10 'rule':26 'ssh':16 'use':11"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://feddit.nu/comment/3717867"
        +editedAt: null
        +createdAt: DateTimeImmutable @1700002524 {#4191
          date: 2023-11-14 23:55:24.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4195}
      +body: """
        Ahead of you with the non-default port, I just didn’t use it in the example.\n
        \n
        But for the destination IP, I won’t always be connecting remotely from the same one. Or am I misunderstanding what you mean?
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1700010992 {#4510
        date: 2023-11-15 02:16:32.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
        "@kungen@feddit.nu"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4514 …}
      +nested: Doctrine\ORM\PersistentCollection {#4516 …}
      +votes: Doctrine\ORM\PersistentCollection {#4518 …}
      +reports: Doctrine\ORM\PersistentCollection {#4520 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4522 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4524 …}
      -id: 125766
      -bodyTs: "'ahead':1 'alway':27 'connect':29 'default':8 'destin':22 'didn':12 'exampl':18 'ip':23 'mean':41 'misunderstand':38 'non':7 'non-default':6 'one':34 'port':9 'remot':30 'use':14 'won':25"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.nz/comment/3773762"
      +editedAt: DateTimeImmutable @1700262890 {#4511
        date: 2023-11-18 00:14:50.0 +01:00
      }
      +createdAt: DateTimeImmutable @1700010992 {#4512
        date: 2023-11-15 02:16:32.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4195}
    +body: """
      Aha, I think I misunderstood your situation then? I assumed you’re running these routing rules on your client machine, so you’re able to access your ssh server without it going over the VPN – not that your server is running a VPN active that blocks external connections…?\n
      \n
      But if I didn’t misunderstand, I’d mean the (assumingly static) ssh server’s IP.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1700048722 {#4583
      date: 2023-11-15 12:45:22.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@kungen@feddit.nu"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4578 …}
    +nested: Doctrine\ORM\PersistentCollection {#4573 …}
    +votes: Doctrine\ORM\PersistentCollection {#4577 …}
    +reports: Doctrine\ORM\PersistentCollection {#4587 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4589 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4591 …}
    -id: 126761
    -bodyTs: "'abl':24 'access':26 'activ':44 'aha':1 'assum':10,59 'block':46 'client':19 'connect':48 'd':56 'didn':52 'extern':47 'go':32 'ip':64 'machin':20 'mean':57 'misunderstand':54 'misunderstood':5 're':12,23 'rout':15 'rule':16 'run':13,41 'server':29,39,62 'situat':7 'ssh':28,61 'static':60 'think':3 'vpn':35,43 'without':30"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.nu/comment/3731873"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700048722 {#4586
      date: 2023-11-15 12:45:22.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4195}
  +body: """
    No it’s the second one; server (home pc) is running ProtonVPN and there is a default route that makes all (ie ssh replies) traffic go through the VPN.\n
    \n
    I added some clarification, but basically this sets up a port-based default route to the home router instead of the VPN, so that SSH etc works.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700080103 {#4725
    date: 2023-11-15 21:28:23.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@kungen@feddit.nu"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4728 …}
  +nested: Doctrine\ORM\PersistentCollection {#4730 …}
  +votes: Doctrine\ORM\PersistentCollection {#4732 …}
  +reports: Doctrine\ORM\PersistentCollection {#4734 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4736 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4738 …}
  -id: 127983
  -bodyTs: "'ad':31 'base':42 'basic':35 'clarif':33 'default':17,43 'etc':56 'go':26 'home':8,47 'ie':22 'instead':49 'make':20 'one':6 'pc':9 'port':41 'port-bas':40 'protonvpn':12 'repli':24 'rout':18,44 'router':48 'run':11 'second':5 'server':7 'set':37 'ssh':23,55 'traffic':25 'vpn':29,52 'work':57"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3791071"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700080103 {#4726
    date: 2023-11-15 21:28:23.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
53 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
54 DENIED moderate
App\Entity\EntryComment {#4268
  +user: App\Entity\User {#4281 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Goddamn I didn’t even think of that, I spent days on an alternate solution to a problem this would’ve solved."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 5
  +score: 0
  +lastActive: DateTime @1700268590 {#4263
    date: 2023-11-18 01:49:50.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4269 …}
  +nested: Doctrine\ORM\PersistentCollection {#4271 …}
  +votes: Doctrine\ORM\PersistentCollection {#4273 …}
  +reports: Doctrine\ORM\PersistentCollection {#4275 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
  -id: 125814
  -bodyTs: "'altern':14 'day':11 'didn':3 'even':5 'goddamn':1 'problem':18 'solut':15 'solv':22 'spent':10 'think':6 've':21 'would':20"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/6141777"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700012246 {#4264
    date: 2023-11-15 02:37:26.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
55 DENIED edit
App\Entity\EntryComment {#4268
  +user: App\Entity\User {#4281 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Goddamn I didn’t even think of that, I spent days on an alternate solution to a problem this would’ve solved."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 5
  +score: 0
  +lastActive: DateTime @1700268590 {#4263
    date: 2023-11-18 01:49:50.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4269 …}
  +nested: Doctrine\ORM\PersistentCollection {#4271 …}
  +votes: Doctrine\ORM\PersistentCollection {#4273 …}
  +reports: Doctrine\ORM\PersistentCollection {#4275 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
  -id: 125814
  -bodyTs: "'altern':14 'day':11 'didn':3 'even':5 'goddamn':1 'problem':18 'solut':15 'solv':22 'spent':10 'think':6 've':21 'would':20"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/6141777"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700012246 {#4264
    date: 2023-11-15 02:37:26.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
56 DENIED moderate
App\Entity\EntryComment {#4268
  +user: App\Entity\User {#4281 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Goddamn I didn’t even think of that, I spent days on an alternate solution to a problem this would’ve solved."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 5
  +score: 0
  +lastActive: DateTime @1700268590 {#4263
    date: 2023-11-18 01:49:50.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4269 …}
  +nested: Doctrine\ORM\PersistentCollection {#4271 …}
  +votes: Doctrine\ORM\PersistentCollection {#4273 …}
  +reports: Doctrine\ORM\PersistentCollection {#4275 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
  -id: 125814
  -bodyTs: "'altern':14 'day':11 'didn':3 'even':5 'goddamn':1 'problem':18 'solut':15 'solv':22 'spent':10 'think':6 've':21 'would':20"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/6141777"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700012246 {#4264
    date: 2023-11-15 02:37:26.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
57 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
58 DENIED moderate
App\Entity\EntryComment {#4528
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4268
    +user: App\Entity\User {#4281 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Goddamn I didn’t even think of that, I spent days on an alternate solution to a problem this would’ve solved."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1700268590 {#4263
      date: 2023-11-18 01:49:50.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4269 …}
    +nested: Doctrine\ORM\PersistentCollection {#4271 …}
    +votes: Doctrine\ORM\PersistentCollection {#4273 …}
    +reports: Doctrine\ORM\PersistentCollection {#4275 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
    -id: 125814
    -bodyTs: "'altern':14 'day':11 'didn':3 'even':5 'goddamn':1 'problem':18 'solut':15 'solv':22 'spent':10 'think':6 've':21 'would':20"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemm.ee/comment/6141777"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700012246 {#4264
      date: 2023-11-15 02:37:26.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4268}
  +body: "I spent most of the day intensely learning nftables and ulogd thinking that was the way. Nope, there was a simple way all along."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1700016296 {#4526
    date: 2023-11-15 03:44:56.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@oldGregg@lemm.ee"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4529 …}
  +nested: Doctrine\ORM\PersistentCollection {#4531 …}
  +votes: Doctrine\ORM\PersistentCollection {#4533 …}
  +reports: Doctrine\ORM\PersistentCollection {#4535 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4537 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4539 …}
  -id: 125950
  -bodyTs: "'along':24 'day':6 'intens':7 'learn':8 'nftabl':9 'nope':17 'simpl':21 'spent':2 'think':12 'ulogd':11 'way':16,22"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3774952"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700016296 {#4527
    date: 2023-11-15 03:44:56.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
59 DENIED edit
App\Entity\EntryComment {#4528
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4268
    +user: App\Entity\User {#4281 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Goddamn I didn’t even think of that, I spent days on an alternate solution to a problem this would’ve solved."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1700268590 {#4263
      date: 2023-11-18 01:49:50.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4269 …}
    +nested: Doctrine\ORM\PersistentCollection {#4271 …}
    +votes: Doctrine\ORM\PersistentCollection {#4273 …}
    +reports: Doctrine\ORM\PersistentCollection {#4275 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
    -id: 125814
    -bodyTs: "'altern':14 'day':11 'didn':3 'even':5 'goddamn':1 'problem':18 'solut':15 'solv':22 'spent':10 'think':6 've':21 'would':20"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemm.ee/comment/6141777"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700012246 {#4264
      date: 2023-11-15 02:37:26.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4268}
  +body: "I spent most of the day intensely learning nftables and ulogd thinking that was the way. Nope, there was a simple way all along."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1700016296 {#4526
    date: 2023-11-15 03:44:56.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@oldGregg@lemm.ee"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4529 …}
  +nested: Doctrine\ORM\PersistentCollection {#4531 …}
  +votes: Doctrine\ORM\PersistentCollection {#4533 …}
  +reports: Doctrine\ORM\PersistentCollection {#4535 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4537 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4539 …}
  -id: 125950
  -bodyTs: "'along':24 'day':6 'intens':7 'learn':8 'nftabl':9 'nope':17 'simpl':21 'spent':2 'think':12 'ulogd':11 'way':16,22"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3774952"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700016296 {#4527
    date: 2023-11-15 03:44:56.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
60 DENIED moderate
App\Entity\EntryComment {#4528
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4268
    +user: App\Entity\User {#4281 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Goddamn I didn’t even think of that, I spent days on an alternate solution to a problem this would’ve solved."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 5
    +score: 0
    +lastActive: DateTime @1700268590 {#4263
      date: 2023-11-18 01:49:50.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4269 …}
    +nested: Doctrine\ORM\PersistentCollection {#4271 …}
    +votes: Doctrine\ORM\PersistentCollection {#4273 …}
    +reports: Doctrine\ORM\PersistentCollection {#4275 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4277 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4279 …}
    -id: 125814
    -bodyTs: "'altern':14 'day':11 'didn':3 'even':5 'goddamn':1 'problem':18 'solut':15 'solv':22 'spent':10 'think':6 've':21 'would':20"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemm.ee/comment/6141777"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700012246 {#4264
      date: 2023-11-15 02:37:26.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4268}
  +body: "I spent most of the day intensely learning nftables and ulogd thinking that was the way. Nope, there was a simple way all along."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1700016296 {#4526
    date: 2023-11-15 03:44:56.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@oldGregg@lemm.ee"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4529 …}
  +nested: Doctrine\ORM\PersistentCollection {#4531 …}
  +votes: Doctrine\ORM\PersistentCollection {#4533 …}
  +reports: Doctrine\ORM\PersistentCollection {#4535 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4537 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4539 …}
  -id: 125950
  -bodyTs: "'along':24 'day':6 'intens':7 'learn':8 'nftabl':9 'nope':17 'simpl':21 'spent':2 'think':12 'ulogd':11 'way':16,22"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3774952"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700016296 {#4527
    date: 2023-11-15 03:44:56.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
61 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
62 DENIED moderate
App\Entity\EntryComment {#4341
  +user: App\Entity\User {#4354 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 9
  +score: 0
  +lastActive: DateTime @1700351136 {#4336
    date: 2023-11-19 00:45:36.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4342 …}
  +nested: Doctrine\ORM\PersistentCollection {#4344 …}
  +votes: Doctrine\ORM\PersistentCollection {#4346 …}
  +reports: Doctrine\ORM\PersistentCollection {#4348 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
  -id: 126278
  -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5815833"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700030701 {#4337
    date: 2023-11-15 07:45:01.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
63 DENIED edit
App\Entity\EntryComment {#4341
  +user: App\Entity\User {#4354 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 9
  +score: 0
  +lastActive: DateTime @1700351136 {#4336
    date: 2023-11-19 00:45:36.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4342 …}
  +nested: Doctrine\ORM\PersistentCollection {#4344 …}
  +votes: Doctrine\ORM\PersistentCollection {#4346 …}
  +reports: Doctrine\ORM\PersistentCollection {#4348 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
  -id: 126278
  -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5815833"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700030701 {#4337
    date: 2023-11-15 07:45:01.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
64 DENIED moderate
App\Entity\EntryComment {#4341
  +user: App\Entity\User {#4354 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 9
  +score: 0
  +lastActive: DateTime @1700351136 {#4336
    date: 2023-11-19 00:45:36.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4342 …}
  +nested: Doctrine\ORM\PersistentCollection {#4344 …}
  +votes: Doctrine\ORM\PersistentCollection {#4346 …}
  +reports: Doctrine\ORM\PersistentCollection {#4348 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
  -id: 126278
  -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5815833"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700030701 {#4337
    date: 2023-11-15 07:45:01.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
65 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
66 DENIED moderate
App\Entity\EntryComment {#4543
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4341
    +user: App\Entity\User {#4354 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 9
    +score: 0
    +lastActive: DateTime @1700351136 {#4336
      date: 2023-11-19 00:45:36.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4342 …}
    +nested: Doctrine\ORM\PersistentCollection {#4344 …}
    +votes: Doctrine\ORM\PersistentCollection {#4346 …}
    +reports: Doctrine\ORM\PersistentCollection {#4348 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
    -id: 126278
    -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/5815833"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700030701 {#4337
      date: 2023-11-15 07:45:01.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700040524 {#4541
    date: 2023-11-15 10:28:44.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4544 …}
  +nested: Doctrine\ORM\PersistentCollection {#4546 …}
  +votes: Doctrine\ORM\PersistentCollection {#4548 …}
  +reports: Doctrine\ORM\PersistentCollection {#4550 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
  -id: 126510
  -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3779657"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700040524 {#4542
    date: 2023-11-15 10:28:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
67 DENIED edit
App\Entity\EntryComment {#4543
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4341
    +user: App\Entity\User {#4354 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 9
    +score: 0
    +lastActive: DateTime @1700351136 {#4336
      date: 2023-11-19 00:45:36.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4342 …}
    +nested: Doctrine\ORM\PersistentCollection {#4344 …}
    +votes: Doctrine\ORM\PersistentCollection {#4346 …}
    +reports: Doctrine\ORM\PersistentCollection {#4348 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
    -id: 126278
    -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/5815833"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700030701 {#4337
      date: 2023-11-15 07:45:01.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700040524 {#4541
    date: 2023-11-15 10:28:44.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4544 …}
  +nested: Doctrine\ORM\PersistentCollection {#4546 …}
  +votes: Doctrine\ORM\PersistentCollection {#4548 …}
  +reports: Doctrine\ORM\PersistentCollection {#4550 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
  -id: 126510
  -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3779657"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700040524 {#4542
    date: 2023-11-15 10:28:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
68 DENIED moderate
App\Entity\EntryComment {#4543
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4341
    +user: App\Entity\User {#4354 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 9
    +score: 0
    +lastActive: DateTime @1700351136 {#4336
      date: 2023-11-19 00:45:36.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4342 …}
    +nested: Doctrine\ORM\PersistentCollection {#4344 …}
    +votes: Doctrine\ORM\PersistentCollection {#4346 …}
    +reports: Doctrine\ORM\PersistentCollection {#4348 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
    -id: 126278
    -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.ml/comment/5815833"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700030701 {#4337
      date: 2023-11-15 07:45:01.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700040524 {#4541
    date: 2023-11-15 10:28:44.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4544 …}
  +nested: Doctrine\ORM\PersistentCollection {#4546 …}
  +votes: Doctrine\ORM\PersistentCollection {#4548 …}
  +reports: Doctrine\ORM\PersistentCollection {#4550 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
  -id: 126510
  -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3779657"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700040524 {#4542
    date: 2023-11-15 10:28:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
69 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
70 DENIED moderate
App\Entity\EntryComment {#4643
  +user: Proxies\__CG__\App\Entity\User {#4644 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4543
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4341
      +user: App\Entity\User {#4354 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 9
      +score: 0
      +lastActive: DateTime @1700351136 {#4336
        date: 2023-11-19 00:45:36.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4342 …}
      +nested: Doctrine\ORM\PersistentCollection {#4344 …}
      +votes: Doctrine\ORM\PersistentCollection {#4346 …}
      +reports: Doctrine\ORM\PersistentCollection {#4348 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
      -id: 126278
      -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.ml/comment/5815833"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700030701 {#4337
        date: 2023-11-15 07:45:01.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4341}
    +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1700040524 {#4541
      date: 2023-11-15 10:28:44.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@Mikelius@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4544 …}
    +nested: Doctrine\ORM\PersistentCollection {#4546 …}
    +votes: Doctrine\ORM\PersistentCollection {#4548 …}
    +reports: Doctrine\ORM\PersistentCollection {#4550 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
    -id: 126510
    -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3779657"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700040524 {#4542
      date: 2023-11-15 10:28:44.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: "Proton has port forwarding anyhow…"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700048913 {#4641
    date: 2023-11-15 12:48:33.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4645 …}
  +nested: Doctrine\ORM\PersistentCollection {#4647 …}
  +votes: Doctrine\ORM\PersistentCollection {#4649 …}
  +reports: Doctrine\ORM\PersistentCollection {#4651 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4653 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4655 …}
  -id: 126768
  -bodyTs: "'anyhow':5 'forward':4 'port':3 'proton':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/6156563"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700048913 {#4642
    date: 2023-11-15 12:48:33.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
71 DENIED edit
App\Entity\EntryComment {#4643
  +user: Proxies\__CG__\App\Entity\User {#4644 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4543
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4341
      +user: App\Entity\User {#4354 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 9
      +score: 0
      +lastActive: DateTime @1700351136 {#4336
        date: 2023-11-19 00:45:36.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4342 …}
      +nested: Doctrine\ORM\PersistentCollection {#4344 …}
      +votes: Doctrine\ORM\PersistentCollection {#4346 …}
      +reports: Doctrine\ORM\PersistentCollection {#4348 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
      -id: 126278
      -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.ml/comment/5815833"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700030701 {#4337
        date: 2023-11-15 07:45:01.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4341}
    +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1700040524 {#4541
      date: 2023-11-15 10:28:44.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@Mikelius@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4544 …}
    +nested: Doctrine\ORM\PersistentCollection {#4546 …}
    +votes: Doctrine\ORM\PersistentCollection {#4548 …}
    +reports: Doctrine\ORM\PersistentCollection {#4550 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
    -id: 126510
    -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3779657"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700040524 {#4542
      date: 2023-11-15 10:28:44.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: "Proton has port forwarding anyhow…"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700048913 {#4641
    date: 2023-11-15 12:48:33.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4645 …}
  +nested: Doctrine\ORM\PersistentCollection {#4647 …}
  +votes: Doctrine\ORM\PersistentCollection {#4649 …}
  +reports: Doctrine\ORM\PersistentCollection {#4651 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4653 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4655 …}
  -id: 126768
  -bodyTs: "'anyhow':5 'forward':4 'port':3 'proton':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/6156563"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700048913 {#4642
    date: 2023-11-15 12:48:33.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
72 DENIED moderate
App\Entity\EntryComment {#4643
  +user: Proxies\__CG__\App\Entity\User {#4644 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4543
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4341
      +user: App\Entity\User {#4354 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 9
      +score: 0
      +lastActive: DateTime @1700351136 {#4336
        date: 2023-11-19 00:45:36.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4342 …}
      +nested: Doctrine\ORM\PersistentCollection {#4344 …}
      +votes: Doctrine\ORM\PersistentCollection {#4346 …}
      +reports: Doctrine\ORM\PersistentCollection {#4348 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
      -id: 126278
      -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.ml/comment/5815833"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700030701 {#4337
        date: 2023-11-15 07:45:01.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4341}
    +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1700040524 {#4541
      date: 2023-11-15 10:28:44.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@Mikelius@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4544 …}
    +nested: Doctrine\ORM\PersistentCollection {#4546 …}
    +votes: Doctrine\ORM\PersistentCollection {#4548 …}
    +reports: Doctrine\ORM\PersistentCollection {#4550 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
    -id: 126510
    -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3779657"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700040524 {#4542
      date: 2023-11-15 10:28:44.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: "Proton has port forwarding anyhow…"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700048913 {#4641
    date: 2023-11-15 12:48:33.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4645 …}
  +nested: Doctrine\ORM\PersistentCollection {#4647 …}
  +votes: Doctrine\ORM\PersistentCollection {#4649 …}
  +reports: Doctrine\ORM\PersistentCollection {#4651 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4653 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4655 …}
  -id: 126768
  -bodyTs: "'anyhow':5 'forward':4 'port':3 'proton':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/6156563"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700048913 {#4642
    date: 2023-11-15 12:48:33.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
73 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
74 DENIED moderate
App\Entity\EntryComment {#4743
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4643
    +user: Proxies\__CG__\App\Entity\User {#4644 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4543
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4341
        +user: App\Entity\User {#4354 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
        +lang: "en"
        +isAdult: false
        +favouriteCount: 9
        +score: 0
        +lastActive: DateTime @1700351136 {#4336
          date: 2023-11-19 00:45:36.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@luthis@lemmy.nz"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4342 …}
        +nested: Doctrine\ORM\PersistentCollection {#4344 …}
        +votes: Doctrine\ORM\PersistentCollection {#4346 …}
        +reports: Doctrine\ORM\PersistentCollection {#4348 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
        -id: 126278
        -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://lemmy.ml/comment/5815833"
        +editedAt: null
        +createdAt: DateTimeImmutable @1700030701 {#4337
          date: 2023-11-15 07:45:01.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4341}
      +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1700040524 {#4541
        date: 2023-11-15 10:28:44.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
        "@Mikelius@lemmy.ml"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4544 …}
      +nested: Doctrine\ORM\PersistentCollection {#4546 …}
      +votes: Doctrine\ORM\PersistentCollection {#4548 …}
      +reports: Doctrine\ORM\PersistentCollection {#4550 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
      -id: 126510
      -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.nz/comment/3779657"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700040524 {#4542
        date: 2023-11-15 10:28:44.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4341}
    +body: "Proton has port forwarding anyhow…"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1700048913 {#4641
      date: 2023-11-15 12:48:33.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@Mikelius@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4645 …}
    +nested: Doctrine\ORM\PersistentCollection {#4647 …}
    +votes: Doctrine\ORM\PersistentCollection {#4649 …}
    +reports: Doctrine\ORM\PersistentCollection {#4651 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4653 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4655 …}
    -id: 126768
    -bodyTs: "'anyhow':5 'forward':4 'port':3 'proton':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemm.ee/comment/6156563"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700048913 {#4642
      date: 2023-11-15 12:48:33.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: """
    I was surprised to learn this was a thing, impressive, however;\n
    \n
    ‘the VPN app sends a request to the VPN server to open a random port’\n
    \n
    ‘the active port number will change when you disconnect and reconnect the VPN.’\n
    \n
    This will not work OOTB with Plex for example, you would need to change the port in the app every time. It becomes difficult to serve anything statically, like a XMPP server or anything that doesn’t let you configure the port.\n
    \n
    You also would need to be at home to check which port you’ve been assigned eg if the connection drops and you get assigned a new port, defeating the whole ‘remote access’ thing.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700078055 {#4740
    date: 2023-11-15 20:54:15.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
    "@WeAreAllOne@lemm.ee"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4744 …}
  +nested: Doctrine\ORM\PersistentCollection {#4746 …}
  +votes: Doctrine\ORM\PersistentCollection {#4748 …}
  +reports: Doctrine\ORM\PersistentCollection {#4750 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4752 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4754 …}
  -id: 127890
  -bodyTs: "'access':114 'activ':28 'also':83 'anyth':66,73 'app':14,58 'assign':97,106 'becom':62 'chang':32,53 'check':91 'configur':79 'connect':101 'defeat':110 'difficult':63 'disconnect':35 'doesn':75 'drop':102 'eg':98 'everi':59 'exampl':48 'get':105 'home':89 'howev':11 'impress':10 'learn':5 'let':77 'like':68 'need':51,85 'new':108 'number':30 'ootb':44 'open':23 'plex':46 'port':26,29,55,81,93,109 'random':25 'reconnect':37 'remot':113 'request':17 'send':15 'serv':65 'server':21,71 'static':67 'surpris':3 'thing':9,115 'time':60 've':95 'vpn':13,20,39 'whole':112 'work':43 'would':50,84 'xmpp':70"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3790363"
  +editedAt: DateTimeImmutable @1700341219 {#4741
    date: 2023-11-18 22:00:19.0 +01:00
  }
  +createdAt: DateTimeImmutable @1700078055 {#4742
    date: 2023-11-15 20:54:15.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
75 DENIED edit
App\Entity\EntryComment {#4743
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4643
    +user: Proxies\__CG__\App\Entity\User {#4644 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4543
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4341
        +user: App\Entity\User {#4354 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
        +lang: "en"
        +isAdult: false
        +favouriteCount: 9
        +score: 0
        +lastActive: DateTime @1700351136 {#4336
          date: 2023-11-19 00:45:36.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@luthis@lemmy.nz"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4342 …}
        +nested: Doctrine\ORM\PersistentCollection {#4344 …}
        +votes: Doctrine\ORM\PersistentCollection {#4346 …}
        +reports: Doctrine\ORM\PersistentCollection {#4348 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
        -id: 126278
        -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://lemmy.ml/comment/5815833"
        +editedAt: null
        +createdAt: DateTimeImmutable @1700030701 {#4337
          date: 2023-11-15 07:45:01.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4341}
      +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1700040524 {#4541
        date: 2023-11-15 10:28:44.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
        "@Mikelius@lemmy.ml"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4544 …}
      +nested: Doctrine\ORM\PersistentCollection {#4546 …}
      +votes: Doctrine\ORM\PersistentCollection {#4548 …}
      +reports: Doctrine\ORM\PersistentCollection {#4550 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
      -id: 126510
      -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.nz/comment/3779657"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700040524 {#4542
        date: 2023-11-15 10:28:44.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4341}
    +body: "Proton has port forwarding anyhow…"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1700048913 {#4641
      date: 2023-11-15 12:48:33.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@Mikelius@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4645 …}
    +nested: Doctrine\ORM\PersistentCollection {#4647 …}
    +votes: Doctrine\ORM\PersistentCollection {#4649 …}
    +reports: Doctrine\ORM\PersistentCollection {#4651 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4653 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4655 …}
    -id: 126768
    -bodyTs: "'anyhow':5 'forward':4 'port':3 'proton':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemm.ee/comment/6156563"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700048913 {#4642
      date: 2023-11-15 12:48:33.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: """
    I was surprised to learn this was a thing, impressive, however;\n
    \n
    ‘the VPN app sends a request to the VPN server to open a random port’\n
    \n
    ‘the active port number will change when you disconnect and reconnect the VPN.’\n
    \n
    This will not work OOTB with Plex for example, you would need to change the port in the app every time. It becomes difficult to serve anything statically, like a XMPP server or anything that doesn’t let you configure the port.\n
    \n
    You also would need to be at home to check which port you’ve been assigned eg if the connection drops and you get assigned a new port, defeating the whole ‘remote access’ thing.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700078055 {#4740
    date: 2023-11-15 20:54:15.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
    "@WeAreAllOne@lemm.ee"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4744 …}
  +nested: Doctrine\ORM\PersistentCollection {#4746 …}
  +votes: Doctrine\ORM\PersistentCollection {#4748 …}
  +reports: Doctrine\ORM\PersistentCollection {#4750 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4752 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4754 …}
  -id: 127890
  -bodyTs: "'access':114 'activ':28 'also':83 'anyth':66,73 'app':14,58 'assign':97,106 'becom':62 'chang':32,53 'check':91 'configur':79 'connect':101 'defeat':110 'difficult':63 'disconnect':35 'doesn':75 'drop':102 'eg':98 'everi':59 'exampl':48 'get':105 'home':89 'howev':11 'impress':10 'learn':5 'let':77 'like':68 'need':51,85 'new':108 'number':30 'ootb':44 'open':23 'plex':46 'port':26,29,55,81,93,109 'random':25 'reconnect':37 'remot':113 'request':17 'send':15 'serv':65 'server':21,71 'static':67 'surpris':3 'thing':9,115 'time':60 've':95 'vpn':13,20,39 'whole':112 'work':43 'would':50,84 'xmpp':70"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3790363"
  +editedAt: DateTimeImmutable @1700341219 {#4741
    date: 2023-11-18 22:00:19.0 +01:00
  }
  +createdAt: DateTimeImmutable @1700078055 {#4742
    date: 2023-11-15 20:54:15.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
76 DENIED moderate
App\Entity\EntryComment {#4743
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4643
    +user: Proxies\__CG__\App\Entity\User {#4644 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4543
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: App\Entity\EntryComment {#4341
        +user: App\Entity\User {#4354 …}
        +entry: App\Entity\Entry {#2412}
        +magazine: App\Entity\Magazine {#266}
        +image: null
        +parent: null
        +root: null
        +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
        +lang: "en"
        +isAdult: false
        +favouriteCount: 9
        +score: 0
        +lastActive: DateTime @1700351136 {#4336
          date: 2023-11-19 00:45:36.0 +01:00
        }
        +ip: null
        +tags: null
        +mentions: [
          "@luthis@lemmy.nz"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4342 …}
        +nested: Doctrine\ORM\PersistentCollection {#4344 …}
        +votes: Doctrine\ORM\PersistentCollection {#4346 …}
        +reports: Doctrine\ORM\PersistentCollection {#4348 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
        -id: 126278
        -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://lemmy.ml/comment/5815833"
        +editedAt: null
        +createdAt: DateTimeImmutable @1700030701 {#4337
          date: 2023-11-15 07:45:01.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4341}
      +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1700040524 {#4541
        date: 2023-11-15 10:28:44.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
        "@Mikelius@lemmy.ml"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4544 …}
      +nested: Doctrine\ORM\PersistentCollection {#4546 …}
      +votes: Doctrine\ORM\PersistentCollection {#4548 …}
      +reports: Doctrine\ORM\PersistentCollection {#4550 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
      -id: 126510
      -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.nz/comment/3779657"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700040524 {#4542
        date: 2023-11-15 10:28:44.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4341}
    +body: "Proton has port forwarding anyhow…"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1700048913 {#4641
      date: 2023-11-15 12:48:33.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@Mikelius@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4645 …}
    +nested: Doctrine\ORM\PersistentCollection {#4647 …}
    +votes: Doctrine\ORM\PersistentCollection {#4649 …}
    +reports: Doctrine\ORM\PersistentCollection {#4651 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4653 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4655 …}
    -id: 126768
    -bodyTs: "'anyhow':5 'forward':4 'port':3 'proton':1"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemm.ee/comment/6156563"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700048913 {#4642
      date: 2023-11-15 12:48:33.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: """
    I was surprised to learn this was a thing, impressive, however;\n
    \n
    ‘the VPN app sends a request to the VPN server to open a random port’\n
    \n
    ‘the active port number will change when you disconnect and reconnect the VPN.’\n
    \n
    This will not work OOTB with Plex for example, you would need to change the port in the app every time. It becomes difficult to serve anything statically, like a XMPP server or anything that doesn’t let you configure the port.\n
    \n
    You also would need to be at home to check which port you’ve been assigned eg if the connection drops and you get assigned a new port, defeating the whole ‘remote access’ thing.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700078055 {#4740
    date: 2023-11-15 20:54:15.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
    "@WeAreAllOne@lemm.ee"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4744 …}
  +nested: Doctrine\ORM\PersistentCollection {#4746 …}
  +votes: Doctrine\ORM\PersistentCollection {#4748 …}
  +reports: Doctrine\ORM\PersistentCollection {#4750 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4752 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4754 …}
  -id: 127890
  -bodyTs: "'access':114 'activ':28 'also':83 'anyth':66,73 'app':14,58 'assign':97,106 'becom':62 'chang':32,53 'check':91 'configur':79 'connect':101 'defeat':110 'difficult':63 'disconnect':35 'doesn':75 'drop':102 'eg':98 'everi':59 'exampl':48 'get':105 'home':89 'howev':11 'impress':10 'learn':5 'let':77 'like':68 'need':51,85 'new':108 'number':30 'ootb':44 'open':23 'plex':46 'port':26,29,55,81,93,109 'random':25 'reconnect':37 'remot':113 'request':17 'send':15 'serv':65 'server':21,71 'static':67 'surpris':3 'thing':9,115 'time':60 've':95 'vpn':13,20,39 'whole':112 'work':43 'would':50,84 'xmpp':70"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3790363"
  +editedAt: DateTimeImmutable @1700341219 {#4741
    date: 2023-11-18 22:00:19.0 +01:00
  }
  +createdAt: DateTimeImmutable @1700078055 {#4742
    date: 2023-11-15 20:54:15.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
77 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
78 DENIED moderate
App\Entity\EntryComment {#4659
  +user: App\Entity\User {#4354 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4543
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4341
      +user: App\Entity\User {#4354 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 9
      +score: 0
      +lastActive: DateTime @1700351136 {#4336
        date: 2023-11-19 00:45:36.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4342 …}
      +nested: Doctrine\ORM\PersistentCollection {#4344 …}
      +votes: Doctrine\ORM\PersistentCollection {#4346 …}
      +reports: Doctrine\ORM\PersistentCollection {#4348 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
      -id: 126278
      -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.ml/comment/5815833"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700030701 {#4337
        date: 2023-11-15 07:45:01.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4341}
    +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1700040524 {#4541
      date: 2023-11-15 10:28:44.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@Mikelius@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4544 …}
    +nested: Doctrine\ORM\PersistentCollection {#4546 …}
    +votes: Doctrine\ORM\PersistentCollection {#4548 …}
    +reports: Doctrine\ORM\PersistentCollection {#4550 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
    -id: 126510
    -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3779657"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700040524 {#4542
      date: 2023-11-15 10:28:44.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: "Oh gotcha, I misunderstood this post as talking about a self hosted VPN, not external provider. That explains it! :D"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700086096 {#4657
    date: 2023-11-15 23:08:16.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4660 …}
  +nested: Doctrine\ORM\PersistentCollection {#4662 …}
  +votes: Doctrine\ORM\PersistentCollection {#4664 …}
  +reports: Doctrine\ORM\PersistentCollection {#4666 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4668 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4670 …}
  -id: 128239
  -bodyTs: "'d':20 'explain':18 'extern':15 'gotcha':2 'host':12 'misunderstood':4 'oh':1 'post':6 'provid':16 'self':11 'talk':8 'vpn':13"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5833526"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700086096 {#4658
    date: 2023-11-15 23:08:16.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
79 DENIED edit
App\Entity\EntryComment {#4659
  +user: App\Entity\User {#4354 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4543
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4341
      +user: App\Entity\User {#4354 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 9
      +score: 0
      +lastActive: DateTime @1700351136 {#4336
        date: 2023-11-19 00:45:36.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4342 …}
      +nested: Doctrine\ORM\PersistentCollection {#4344 …}
      +votes: Doctrine\ORM\PersistentCollection {#4346 …}
      +reports: Doctrine\ORM\PersistentCollection {#4348 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
      -id: 126278
      -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.ml/comment/5815833"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700030701 {#4337
        date: 2023-11-15 07:45:01.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4341}
    +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1700040524 {#4541
      date: 2023-11-15 10:28:44.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@Mikelius@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4544 …}
    +nested: Doctrine\ORM\PersistentCollection {#4546 …}
    +votes: Doctrine\ORM\PersistentCollection {#4548 …}
    +reports: Doctrine\ORM\PersistentCollection {#4550 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
    -id: 126510
    -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3779657"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700040524 {#4542
      date: 2023-11-15 10:28:44.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: "Oh gotcha, I misunderstood this post as talking about a self hosted VPN, not external provider. That explains it! :D"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700086096 {#4657
    date: 2023-11-15 23:08:16.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4660 …}
  +nested: Doctrine\ORM\PersistentCollection {#4662 …}
  +votes: Doctrine\ORM\PersistentCollection {#4664 …}
  +reports: Doctrine\ORM\PersistentCollection {#4666 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4668 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4670 …}
  -id: 128239
  -bodyTs: "'d':20 'explain':18 'extern':15 'gotcha':2 'host':12 'misunderstood':4 'oh':1 'post':6 'provid':16 'self':11 'talk':8 'vpn':13"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5833526"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700086096 {#4658
    date: 2023-11-15 23:08:16.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
80 DENIED moderate
App\Entity\EntryComment {#4659
  +user: App\Entity\User {#4354 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4543
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: App\Entity\EntryComment {#4341
      +user: App\Entity\User {#4354 …}
      +entry: App\Entity\Entry {#2412}
      +magazine: App\Entity\Magazine {#266}
      +image: null
      +parent: null
      +root: null
      +body: "Out of curiosity, why not just leave ssh access to the local network so you can only reach it by VPN in the first place? Note I might be misunderstanding what the goal of this was, so feel free to lmk if I’m off the field with my question lol"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 9
      +score: 0
      +lastActive: DateTime @1700351136 {#4336
        date: 2023-11-19 00:45:36.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@luthis@lemmy.nz"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4342 …}
      +nested: Doctrine\ORM\PersistentCollection {#4344 …}
      +votes: Doctrine\ORM\PersistentCollection {#4346 …}
      +reports: Doctrine\ORM\PersistentCollection {#4348 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4350 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4352 …}
      -id: 126278
      -bodyTs: "'access':9 'curios':3 'feel':38 'field':47 'first':24 'free':39 'goal':33 'leav':7 'lmk':41 'local':12 'lol':51 'm':44 'might':28 'misunderstand':30 'network':13 'note':26 'place':25 'question':50 'reach':18 'ssh':8 'vpn':21"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.ml/comment/5815833"
      +editedAt: null
      +createdAt: DateTimeImmutable @1700030701 {#4337
        date: 2023-11-15 07:45:01.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4341}
    +body: "I have protonVPN, therefore no way to forward packets from their endpoint to my pc."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1700040524 {#4541
      date: 2023-11-15 10:28:44.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
      "@Mikelius@lemmy.ml"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4544 …}
    +nested: Doctrine\ORM\PersistentCollection {#4546 …}
    +votes: Doctrine\ORM\PersistentCollection {#4548 …}
    +reports: Doctrine\ORM\PersistentCollection {#4550 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4552 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4554 …}
    -id: 126510
    -bodyTs: "'endpoint':12 'forward':8 'packet':9 'pc':15 'protonvpn':3 'therefor':4 'way':6"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.nz/comment/3779657"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700040524 {#4542
      date: 2023-11-15 10:28:44.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4341}
  +body: "Oh gotcha, I misunderstood this post as talking about a self hosted VPN, not external provider. That explains it! :D"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700086096 {#4657
    date: 2023-11-15 23:08:16.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@Mikelius@lemmy.ml"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4660 …}
  +nested: Doctrine\ORM\PersistentCollection {#4662 …}
  +votes: Doctrine\ORM\PersistentCollection {#4664 …}
  +reports: Doctrine\ORM\PersistentCollection {#4666 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4668 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4670 …}
  -id: 128239
  -bodyTs: "'d':20 'explain':18 'extern':15 'gotcha':2 'host':12 'misunderstood':4 'oh':1 'post':6 'provid':16 'self':11 'talk':8 'vpn':13"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5833526"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700086096 {#4658
    date: 2023-11-15 23:08:16.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
81 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
82 DENIED moderate
App\Entity\EntryComment {#4414
  +user: App\Entity\User {#4427 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "What are you trying to achieve? I am sorry I don’t understand the end goal"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700292436 {#4409
    date: 2023-11-18 08:27:16.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4415 …}
  +nested: Doctrine\ORM\PersistentCollection {#4417 …}
  +votes: Doctrine\ORM\PersistentCollection {#4419 …}
  +reports: Doctrine\ORM\PersistentCollection {#4421 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4423 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4425 …}
  -id: 126415
  -bodyTs: "'achiev':6 'end':15 'goal':16 'sorri':9 'tri':4 'understand':13"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5327883"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700036727 {#4410
    date: 2023-11-15 09:25:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
83 DENIED edit
App\Entity\EntryComment {#4414
  +user: App\Entity\User {#4427 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "What are you trying to achieve? I am sorry I don’t understand the end goal"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700292436 {#4409
    date: 2023-11-18 08:27:16.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4415 …}
  +nested: Doctrine\ORM\PersistentCollection {#4417 …}
  +votes: Doctrine\ORM\PersistentCollection {#4419 …}
  +reports: Doctrine\ORM\PersistentCollection {#4421 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4423 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4425 …}
  -id: 126415
  -bodyTs: "'achiev':6 'end':15 'goal':16 'sorri':9 'tri':4 'understand':13"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5327883"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700036727 {#4410
    date: 2023-11-15 09:25:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
84 DENIED moderate
App\Entity\EntryComment {#4414
  +user: App\Entity\User {#4427 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: null
  +root: null
  +body: "What are you trying to achieve? I am sorry I don’t understand the end goal"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700292436 {#4409
    date: 2023-11-18 08:27:16.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4415 …}
  +nested: Doctrine\ORM\PersistentCollection {#4417 …}
  +votes: Doctrine\ORM\PersistentCollection {#4419 …}
  +reports: Doctrine\ORM\PersistentCollection {#4421 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4423 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4425 …}
  -id: 126415
  -bodyTs: "'achiev':6 'end':15 'goal':16 'sorri':9 'tri':4 'understand':13"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5327883"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700036727 {#4410
    date: 2023-11-15 09:25:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
85 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
86 DENIED moderate
App\Entity\EntryComment {#4558
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4414
    +user: App\Entity\User {#4427 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "What are you trying to achieve? I am sorry I don’t understand the end goal"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1700292436 {#4409
      date: 2023-11-18 08:27:16.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4415 …}
    +nested: Doctrine\ORM\PersistentCollection {#4417 …}
    +votes: Doctrine\ORM\PersistentCollection {#4419 …}
    +reports: Doctrine\ORM\PersistentCollection {#4421 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4423 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4425 …}
    -id: 126415
    -bodyTs: "'achiev':6 'end':15 'goal':16 'sorri':9 'tri':4 'understand':13"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5327883"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700036727 {#4410
      date: 2023-11-15 09:25:27.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4414}
  +body: "Remote access while ProtonVPN is active."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1700040547 {#4556
    date: 2023-11-15 10:29:07.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@WhyAUsername_1@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4559 …}
  +nested: Doctrine\ORM\PersistentCollection {#4561 …}
  +votes: Doctrine\ORM\PersistentCollection {#4563 …}
  +reports: Doctrine\ORM\PersistentCollection {#4565 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4567 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4569 …}
  -id: 126511
  -bodyTs: "'access':2 'activ':6 'protonvpn':4 'remot':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3779660"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700040547 {#4557
    date: 2023-11-15 10:29:07.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
87 DENIED edit
App\Entity\EntryComment {#4558
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4414
    +user: App\Entity\User {#4427 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "What are you trying to achieve? I am sorry I don’t understand the end goal"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1700292436 {#4409
      date: 2023-11-18 08:27:16.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4415 …}
    +nested: Doctrine\ORM\PersistentCollection {#4417 …}
    +votes: Doctrine\ORM\PersistentCollection {#4419 …}
    +reports: Doctrine\ORM\PersistentCollection {#4421 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4423 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4425 …}
    -id: 126415
    -bodyTs: "'achiev':6 'end':15 'goal':16 'sorri':9 'tri':4 'understand':13"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5327883"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700036727 {#4410
      date: 2023-11-15 09:25:27.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4414}
  +body: "Remote access while ProtonVPN is active."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1700040547 {#4556
    date: 2023-11-15 10:29:07.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@WhyAUsername_1@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4559 …}
  +nested: Doctrine\ORM\PersistentCollection {#4561 …}
  +votes: Doctrine\ORM\PersistentCollection {#4563 …}
  +reports: Doctrine\ORM\PersistentCollection {#4565 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4567 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4569 …}
  -id: 126511
  -bodyTs: "'access':2 'activ':6 'protonvpn':4 'remot':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3779660"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700040547 {#4557
    date: 2023-11-15 10:29:07.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
88 DENIED moderate
App\Entity\EntryComment {#4558
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2412
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#266
      +icon: Proxies\__CG__\App\Entity\Image {#247 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#276
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#238 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
      +entries: Doctrine\ORM\PersistentCollection {#181 …}
      +posts: Doctrine\ORM\PersistentCollection {#139 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
      +bans: Doctrine\ORM\PersistentCollection {#118 …}
      +reports: Doctrine\ORM\PersistentCollection {#104 …}
      +badges: Doctrine\ORM\PersistentCollection {#82 …}
      +logs: Doctrine\ORM\PersistentCollection {#72 …}
      +awards: Doctrine\ORM\PersistentCollection {#61 …}
      +categories: Doctrine\ORM\PersistentCollection {#1820 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#270
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#272
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "How-to-exclude-SSH-port-from-VPN-so-you-can"
    +title: "How to exclude SSH port from VPN so you can remote access while VPN is up"
    +url: null
    +body: """
      I solved this problem for myself yesterday and couldn’t find the answer anywhere online (clearly stated), so here’s what I did.\n
      \n
      This also works for Plex, games, etc it’s policy based routing so you can have your VPN and remote access at the same time.\n
      \n
      This configuration is for your ssh server (ie your home PC) that has a VPN running like ProtonVPN etc and allows you to connect back to your home PC remotely either for SSH, plex, anything you’re serving.\n
      \n
      This is changing the default gateway for particular ports, so that return traffic from connection attempts doesn’t go back out through the VPN.\n
      \n
      I used this page to figure out how to do this:\n
      \n
      [linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)\n
      \n
      Add a default route to some table, arbitrarily table 10 but you can use whatever number (RTFM), also obviously needs to be your router IP\n
      \n
      `  sudo ip route add default via 192.168.19.1 table 10`\n
      \n
      Add a rule for the return traffic from your ssh host\n
      \n
      `  sudo ip rule add sport 22 table 10`\n
      \n
      `  sudo ip route flush cache`\n
      \n
      check out your fancy new rule\n
      \n
      `  ip rule show`\n
      \n
      And to make this persistent across reboots, add to:\n
      \n
      `/etc/systemd/network/20-wired.network`\n
      \n
      (or whatever your file there is, add the following to the bottom. This is the same as above, just permanent)\n
      \n
      ```\n
      \n
      <span style="color:#323232;">[Route]\n
      </span><span style="color:#323232;">Gateway=192.168.19.1\n
      </span><span style="color:#323232;">Table=10\n
      </span><span style="color:#323232;">\n
      </span><span style="color:#323232;">[RoutingPolicyRule]\n
      </span><span style="color:#323232;">SourcePort=22\n
      </span><span style="color:#323232;">Table=10\n
      </span>\n
      ```
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 21
    +favouriteCount: 90
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700086096 {#2410
      date: 2023-11-15 23:08:16.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 13100
    -titleTs: "'access':12 'exclud':3 'port':5 'remot':11 'ssh':4 'vpn':7,14"
    -bodyTs: "'/etc/systemd/network/20-wired.network':201 '/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':124 '10':134,158,177,226,231 '192.168.19.1':156,224 '22':175,229 'access':44 'across':197 'add':125,153,159,173,199,208 'allow':69 'also':25,142 'answer':13 'anyth':83 'anywher':14 'arbitrarili':132 'attempt':102 'back':73,106 'base':34 'bottom':213 'cach':182 'chang':89 'check':183 'clear':16 'configur':50 'connect':72,101 'couldn':9 'default':91,127,154 'doesn':103 'either':79 'etc':30,67 'fanci':186 'figur':116 'file':205 'find':11 'flush':181 'follow':210 'game':29 'gateway':92,223 'go':105 'home':58,76 'host':169 'ie':56 'ip':149,151,171,179,189 'like':65 'linux-ip.net':123 'linux-ip.net/html/tools-ip-rule.html](http://linux-ip.net/html/tools-ip-rule.html)':122 'make':194 'need':144 'new':187 'number':140 'obvious':143 'onlin':15 'page':114 'particular':94 'pc':59,77 'perman':221 'persist':196 'plex':28,82 'polici':33 'port':95 'problem':4 'protonvpn':66 're':85 'reboot':198 'remot':43,78 'return':98,164 'rout':35,128,152,180,222 'router':148 'routingpolicyrul':227 'rtfm':141 'rule':161,172,188,190 'run':64 'serv':86 'server':55 'show':191 'solv':2 'sourceport':228 'sport':174 'ssh':54,81,168 'state':17 'sudo':150,170,178 'tabl':131,133,157,176,225,230 'time':48 'traffic':99,165 'use':112,138 'via':155 'vpn':41,63,110 'whatev':139,203 'work':26 'yesterday':7"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1700086244
    +visibility: "visible             "
    +apId: "https://lemmy.nz/post/3374605"
    +editedAt: DateTimeImmutable @1700341046 {#1850
      date: 2023-11-18 21:57:26.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699999844 {#2420
      date: 2023-11-14 23:10:44.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#266}
  +image: null
  +parent: App\Entity\EntryComment {#4414
    +user: App\Entity\User {#4427 …}
    +entry: App\Entity\Entry {#2412}
    +magazine: App\Entity\Magazine {#266}
    +image: null
    +parent: null
    +root: null
    +body: "What are you trying to achieve? I am sorry I don’t understand the end goal"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1700292436 {#4409
      date: 2023-11-18 08:27:16.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@luthis@lemmy.nz"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4415 …}
    +nested: Doctrine\ORM\PersistentCollection {#4417 …}
    +votes: Doctrine\ORM\PersistentCollection {#4419 …}
    +reports: Doctrine\ORM\PersistentCollection {#4421 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4423 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4425 …}
    -id: 126415
    -bodyTs: "'achiev':6 'end':15 'goal':16 'sorri':9 'tri':4 'understand':13"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5327883"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700036727 {#4410
      date: 2023-11-15 09:25:27.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4414}
  +body: "Remote access while ProtonVPN is active."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1700040547 {#4556
    date: 2023-11-15 10:29:07.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@luthis@lemmy.nz"
    "@WhyAUsername_1@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4559 …}
  +nested: Doctrine\ORM\PersistentCollection {#4561 …}
  +votes: Doctrine\ORM\PersistentCollection {#4563 …}
  +reports: Doctrine\ORM\PersistentCollection {#4565 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4567 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4569 …}
  -id: 126511
  -bodyTs: "'access':2 'activ':6 'protonvpn':4 'remot':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.nz/comment/3779660"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700040547 {#4557
    date: 2023-11-15 10:29:07.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
89 DENIED edit
App\Entity\Magazine {#266
  +icon: Proxies\__CG__\App\Entity\Image {#247 …}
  +name: "linux@lemmy.ml"
  +title: "linux"
  +description: """
    From Wikipedia, the free encyclopedia\n
    \n
    Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
    \n
    Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
    \n
    ### Rules\n
    \n
    - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
    - No misinformation\n
    - No NSFW content\n
    - No hate speech, bigotry, etc\n
    \n
    ### Related Communities\n
    \n
    - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
    - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
    - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
    - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
    \n
    Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
    """
  +rules: null
  +subscriptionsCount: 1
  +entryCount: 1406
  +entryCommentCount: 28632
  +postCount: 6
  +postCommentCount: 214
  +isAdult: false
  +customCss: null
  +lastActive: DateTime @1729583542 {#276
    date: 2024-10-22 09:52:22.0 +02:00
  }
  +markedForDeletionAt: null
  +tags: null
  +moderators: Doctrine\ORM\PersistentCollection {#238 …}
  +ownershipRequests: Doctrine\ORM\PersistentCollection {#234 …}
  +moderatorRequests: Doctrine\ORM\PersistentCollection {#223 …}
  +entries: Doctrine\ORM\PersistentCollection {#181 …}
  +posts: Doctrine\ORM\PersistentCollection {#139 …}
  +subscriptions: Doctrine\ORM\PersistentCollection {#201 …}
  +bans: Doctrine\ORM\PersistentCollection {#118 …}
  +reports: Doctrine\ORM\PersistentCollection {#104 …}
  +badges: Doctrine\ORM\PersistentCollection {#82 …}
  +logs: Doctrine\ORM\PersistentCollection {#72 …}
  +awards: Doctrine\ORM\PersistentCollection {#61 …}
  +categories: Doctrine\ORM\PersistentCollection {#1820 …}
  -id: 73
  +apId: "linux@lemmy.ml"
  +apProfileId: "https://lemmy.ml/c/linux"
  +apPublicUrl: "https://lemmy.ml/c/linux"
  +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
  +apInboxUrl: "https://lemmy.ml/inbox"
  +apDomain: "lemmy.ml"
  +apPreferredUsername: "linux"
  +apDiscoverable: true
  +apManuallyApprovesFollowers: null
  +privateKey: null
  +publicKey: null
  +apFetchedAt: DateTime @1729583596 {#270
    date: 2024-10-22 09:53:16.0 +02:00
  }
  +apDeletedAt: null
  +apTimeoutAt: null
  +visibility: "visible             "
  +createdAt: DateTimeImmutable @1698929468 {#272
    date: 2023-11-02 13:51:08.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS DENIED
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details