~lord/krasovs.ky unlisted

fc1c1e4c6c0546e913286325d68a2cf8f64c5aed — Savely Krasovsky a month ago 43497b5
cshell remark added
1 files changed, 24 insertions(+), 1 deletions(-)

M content/blog/checkpoint-snx-adventure.md
M content/blog/checkpoint-snx-adventure.md => content/blog/checkpoint-snx-adventure.md +24 -1
@@ 254,4 254,27 @@ echo "nftables flushed"
This is where all the magic is going on. Simple masquerading doesn't help in this case.
Reconnect you SNX and try to open corporate resource. Works? Cool!

Feel free to leave comments below the post.
\ No newline at end of file
Feel free to leave comments below the post.

**UPDATE:** I can also recommend removing default cshell autostart (from `~/.config/autostart/cshell.desktop`)
because it's not reliable and setup user systemd service:
```bash
[Unit]
Description=Checkpoint SNX CShell
After=network.target

[Service]
Type=simple
User=savely
Group=savely
Environment=DISPLAY=:0
WorkingDirectory=/usr/bin/cshell
# Should work for JRE 16
ExecStart=/usr/bin/java --add-exports java.base/sun.net.spi=ALL-UNNAMED -jar CShell.jar /tmp/cshell.fifo
ExecStop=/bin/kill -15 $MAINPID
SuccessExitStatus=143
Restart=on-failure

[Install]
WantedBy=multi-user.target
```
\ No newline at end of file