-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
connection logging, cleanup & more docs
- Loading branch information
Showing
13 changed files
with
170 additions
and
121 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.. _redirector: | ||
|
||
.. |proxy_forwarder| image:: https://wiki.superstes.eu/en/latest/_images/squid_remote.png | ||
:class: wiki-img | ||
|
||
.. include:: ../_inc/head.rst | ||
|
||
########## | ||
Redirector | ||
########## | ||
|
||
The redirector will be a smaller version of Calamary. (*without filtering*) | ||
|
||
It can be used to forward traffic from remote locations to your proxy servers. | ||
|
||
|proxy_forwarder| | ||
|
||
Per example - this might be useful if you have: | ||
|
||
* Distributed systems | ||
|
||
* Cloud servers that are only connected to public WAN and should send all their outbound traffic over your proxy | ||
|
||
* Simple/dumb firewalls/routers that should send the networks outbound traffic over your proxy | ||
|
||
As it utilizes the commonly used `proxy-protocol <https://www.haproxy.com/blog/use-the-proxy-protocol-to-preserve-a-clients-ip-address>`_ to redirect the traffic, it might also be useful in combination with other proxies. |
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
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,19 @@ | ||
package parse | ||
|
||
import "github.com/superstes/calamary/log" | ||
|
||
func LogConnDebug(pkg string, pkt ParsedPacket, msg string) { | ||
log.Conn("DEBUG", pkg, PktSrc(pkt), PktDest(pkt), msg) | ||
} | ||
|
||
func LogConnInfo(pkg string, pkt ParsedPacket, msg string) { | ||
log.Conn("INFO", pkg, PktSrc(pkt), PktDest(pkt), msg) | ||
} | ||
|
||
func LogConnWarn(pkg string, pkt ParsedPacket, msg string) { | ||
log.Conn("WARN", pkg, PktSrc(pkt), PktDest(pkt), msg) | ||
} | ||
|
||
func LogConnError(pkg string, pkt ParsedPacket, msg string) { | ||
log.Conn("ERROR", pkg, PktSrc(pkt), PktDest(pkt), msg) | ||
} |
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
Oops, something went wrong.