-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #127 from vedetta-com/wip
- Fix #125 Connect to switch0 at reboot, thank you @bentley - Fix #82 TLS inspection (MITM) with relayd
- Loading branch information
Showing
9 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ description "switchd interface" | |
addlocal vether0 | ||
#add tap0 | ||
up | ||
!switchctl connect /dev/switch0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
http protocol httpsfilter { | ||
return error | ||
match header set "Connection" value "close" | ||
|
||
pass | ||
# pass quick url file "/etc/relayd.d/custom_whitelist" | ||
# block url file "/etc/relayd.d/custom_blacklist" | ||
# include "/etc/relayd.d/auto_blacklist" | ||
|
||
tls ca key "/etc/ssl/relayd/private/ca.key" password "AvenaCrucio" | ||
tls ca cert "/etc/ssl/relayd/ca.crt" # import on client | ||
} | ||
|
||
relay tlsinspect { | ||
# Listen on localhost, accept diverted connections from pf(4) | ||
listen on 127.0.0.1 port 8443 tls | ||
listen on ::1 port 8443 tls | ||
|
||
protocol httpsfilter | ||
|
||
# Forward to the original target host | ||
forward with tls to destination | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters