https://github.com/jojiiofficial/tripwire
Create iptable rules to log connections on a specific port
https://github.com/jojiiofficial/tripwire
firewall firewall-configuration firewall-rules iptables linux logging tool
Last synced: 2 months ago
JSON representation
Create iptable rules to log connections on a specific port
- Host: GitHub
- URL: https://github.com/jojiiofficial/tripwire
- Owner: JojiiOfficial
- License: mit
- Created: 2019-10-23T15:58:04.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-19T17:26:02.000Z (over 6 years ago)
- Last Synced: 2025-10-07T03:40:26.724Z (9 months ago)
- Topics: firewall, firewall-configuration, firewall-rules, iptables, linux, logging, tool
- Language: Go
- Homepage: https://www.triplink.tech/
- Size: 43.2 MB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tripwire
A nice usefull tool to create iptable-rules which logs all connections to a given port to detect ip-scanner and hacker.
You can use it in combination with the [ScanBanServer](https://github.com/JojiiOfficial/ScanBanServer) and [Triplink](https://github.com/JojiiOfficial/triplink) to create a network to collect and block internet scanner
# Install
Run
```go
go get
go build -o tripwire
```
it was tested with go 1.13. If compiling doesn't work, try using go1.13
# Usage
Show help
```#./tripwire -h```
Create a rule to log and allow all connections to port 21 and write them into /var/log/ftpListener.conf
```#./tripwire add -p21 -o ftpListener -a```
...Block incomming connections (instead of accepting them)
```#./tripwire add -p21 -o ftpListener```
...Specifies the [loglevel](https://highly.illegal-dark-web-server.xyz/i/qszvm-34l8q-9crda-abi85-b0vhv)
```#./tripwire add -p21 -o ftpListener -l5 ```
Delete log and iptable rules for port 21
```#./tripwire delete -p21 -o ftpListener```
List all tripwire configurations
```#./tripwire list```