mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-21 17:52:01 +01:00
Add /
This commit is contained in:
@@ -24,7 +24,7 @@ specify the interface they run on in rc.conf (or other config files)
|
|||||||
# bastille rdr dev1 tcp 2001 22
|
# bastille rdr dev1 tcp 2001 22
|
||||||
[jail1]:
|
[jail1]:
|
||||||
Redirecting IPv4:
|
Redirecting IPv4:
|
||||||
tcp any:2001 -> any:22 on em0
|
tcp/any:2001 -> any:22 on em0
|
||||||
|
|
||||||
# bastille rdr dev1 list
|
# bastille rdr dev1 list
|
||||||
rdr on em0 inet proto tcp from any to any port = 2001 -> 10.17.89.1 port 22
|
rdr on em0 inet proto tcp from any to any port = 2001 -> 10.17.89.1 port 22
|
||||||
@@ -32,7 +32,7 @@ specify the interface they run on in rc.conf (or other config files)
|
|||||||
# bastille rdr dev1 udp 2053 53
|
# bastille rdr dev1 udp 2053 53
|
||||||
[jail1]:
|
[jail1]:
|
||||||
Redirecting:
|
Redirecting:
|
||||||
udp any:2001 -> any:22 on em0
|
udp/any:2001 -> any:22 on em0
|
||||||
|
|
||||||
# bastille rdr dev1 list
|
# bastille rdr dev1 list
|
||||||
rdr pass on em0 inet proto tcp from any to any port = 2001 -> 10.17.89.1 port 22
|
rdr pass on em0 inet proto tcp from any to any port = 2001 -> 10.17.89.1 port 22
|
||||||
@@ -52,22 +52,22 @@ The `rdr` command includes 3 additional options:
|
|||||||
# bastille rdr dev1 -i vtnet0 udp 2001 22
|
# bastille rdr dev1 -i vtnet0 udp 2001 22
|
||||||
[jail1]:
|
[jail1]:
|
||||||
Redirecting IPv4:
|
Redirecting IPv4:
|
||||||
tcp any:8000 -> any:80 on vtnet0
|
tcp/any:8000 -> any:80 on vtnet0
|
||||||
|
|
||||||
# bastille rdr dev1 -s 192.168.0.1 tcp 8080 81
|
# bastille rdr dev1 -s 192.168.0.1 tcp 8080 81
|
||||||
[jail1]:
|
[jail1]:
|
||||||
Redirecting IPv4:
|
Redirecting IPv4:
|
||||||
tcp 192.168.0.1:8080 -> any:81 on em0
|
tcp/192.168.0.1:8080 -> any:81 on em0
|
||||||
|
|
||||||
# bastille rdr dev1 -d 192.168.0.84 tcp 8082 82
|
# bastille rdr dev1 -d 192.168.0.84 tcp 8082 82
|
||||||
[jail1]:
|
[jail1]:
|
||||||
Redirecting IPv4:
|
Redirecting IPv4:
|
||||||
tcp any:8082 -> 192.168.0.84:82 on em0
|
tcp/any:8082 -> 192.168.0.84:82 on em0
|
||||||
|
|
||||||
# bastille rdr dev1 -i vtnet0 -d 192.168.0.45 tcp 9000 9000
|
# bastille rdr dev1 -i vtnet0 -d 192.168.0.45 tcp 9000 9000
|
||||||
[jail1]:
|
[jail1]:
|
||||||
Redirecting IPv4:
|
Redirecting IPv4:
|
||||||
tcp any:9000 -> 192.168.0.45:9000 on vtnet0
|
tcp/any:9000 -> 192.168.0.45:9000 on vtnet0
|
||||||
|
|
||||||
# bastille rdr dev1 list
|
# bastille rdr dev1 list
|
||||||
rdr pass on vtnet0 inet proto udp from any to any port = 2001 -> 10.17.89.1 port 22
|
rdr pass on vtnet0 inet proto udp from any to any port = 2001 -> 10.17.89.1 port 22
|
||||||
|
|||||||
Reference in New Issue
Block a user