An open API service indexing awesome lists of open source software.

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

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```