Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # list iptables rules
- sudo iptables -L
- # clear iptables rules
- sudo iptables -F INPUT
- #start server
- busybox nc -l -p 8888
- # connect with client
- busybox nc localhost:8888
- busybox nc 127.0.0.1:8888
- busybox nc 192.168.1.158:8888
- # block incoming traffic on port 8888
- sudo iptables -A INPUT -p tcp --dport 8888 -j REJECT
- #start server
- busybox nc -l -p 8888
- # connect with client - now only working with localhost
- busybox nc localhost:8888
- busybox nc 127.0.0.1:8888
- busybox nc 192.168.1.158:8888
- # clear iptables rules
- sudo iptables -F INPUT
- # list iptables rules
- sudo iptables -L
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement