Skip to content

Commit a0b592f

Browse files
committed
Updated the documentation to include some information on port support
1 parent 574feb9 commit a0b592f

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Documentation/sshuttle.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ entire subnet to the VPN.
3636
single IP address), 1.2.3.4/32 (equivalent to 1.2.3.4),
3737
1.2.3.0/24 (a 24-bit subnet, ie. with a 255.255.255.0
3838
netmask), and 0/0 ('just route everything through the
39-
VPN').
39+
VPN'). In addition, it is also possible to filter
40+
additionally on the tcp port to include/exclude.
41+
This is done by adding :port at the end of your netmask.
42+
Note that `:port` is also valid. In this case, the netmask
43+
will be defaulted to 0/0. Valid examples are `:80`,
44+
`0:80`, `1.2.3.4:80` and `1.2.3.4/24:80`.
4045

4146
-l, --listen=*[ip:]port*
4247
: use this ip address and port number as the transparent

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def parse_ipport(s):
6565
dns capture local DNS requests and forward to the remote DNS server
6666
python= path to python interpreter on the remote server
6767
r,remote= ssh hostname (and optional username) of remote sshuttle server
68-
x,exclude= exclude this subnet (can be used more than once)
68+
x,exclude= exclude this subnet and/or port (can be used more than once)
6969
exclude-from= exclude the subnets in a file (whitespace separated)
7070
v,verbose increase debug message verbosity
7171
e,ssh-cmd= the command to use to connect to the remote [ssh]

0 commit comments

Comments
 (0)