rapiz1 / rathole

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
Apache License 2.0
9.44k stars 475 forks source link

How can I list the rules on linux? #257

Closed tecnicosya closed 1 year ago

tecnicosya commented 1 year ago

First thank you for this nice software. I want to know how can I see the rules in the server side, to apply IP Allow or Disallow. Just to apply for every rule created on rathole.

rapiz1 commented 1 year ago

Do you mean an IP whitelist/blacklist for a specific port? You're probably looking for that in firewall configurations, not rathole

tecnicosya commented 1 year ago

Yes I want it, but how rathole create the routes and how can I list? I try with iptables -S and others but I'm a noob

rapiz1 commented 1 year ago

rathole does not create routes. Just configure your firewall for the port rathole is listening(which is the one you specified in rathole configuration)