Update cheatsheets

This commit is contained in:
ivuorinen
2025-05-10 00:19:02 +00:00
parent 9f85bd373f
commit c39b4c5f19
53 changed files with 152 additions and 86 deletions

View File

@@ -11,16 +11,16 @@ source: https://github.com/tldr-pages/tldr.git
- Forward all IPv4 TCP traffic via a remote SSH server:
`sshuttle --remote={{username}}@{{sshserver}} {{0.0.0.0/0}}`
`sshuttle {{[-r|--remote]}} {{username}}@{{sshserver}} {{0.0.0.0/0}}`
- Also forward all DNS traffic to the server's default DNS resolver:
`sshuttle --dns --remote={{username}}@{{sshserver}} {{0.0.0.0/0}}`
`sshuttle --dns {{[-r|--remote]}} {{username}}@{{sshserver}} {{0.0.0.0/0}}`
- Forward all traffic except that which is bound for a specific subnet:
`sshuttle --remote={{username}}@{{sshserver}} {{0.0.0.0/0}} --exclude {{192.168.0.1/24}}`
`sshuttle {{[-r|--remote]}} {{username}}@{{sshserver}} {{0.0.0.0/0}} {{[-x|--exclude]}} {{192.168.0.1/24}}`
- Use the tproxy method to forward all IPv4 and IPv6 traffic:
`sshuttle --method=tproxy --remote={{username}}@{{sshserver}} {{0.0.0.0/0}} {{::/0}} --exclude={{your_local_ip_address}} --exclude={{ssh_server_ip_address}}`
`sshuttle --method tproxy {{[-r|--remote]}} {{username}}@{{sshserver}} {{0.0.0.0/0}} {{::/0}} {{[-x|--exclude]}} {{your_local_ip_address}} {{[-x|--exclude]}} {{ssh_server_ip_address}}`