Go to advanced search

by Xenon8419
Sat Jun 01, 2019 1:50 pm
Forum: Raspberry Pi OS
Topic: SSH (iptables): how to allow only one IP
Replies: 4
Views: 735

SSH (iptables): how to allow only one IP

Hello, i have a problem, if i use this line in iptables i can't connect to my raspberry (it has an static public IP) (X.X.X.X is the IP of another LAN): /sbin/iptables -P INPUT DROP /sbin/iptables -P FORWARD DROP /sbin/iptables -P OUTPUT ACCEPT /sbin/iptables -A INPUT -p tcp -d X.X.X.X --dport 22 -m...

Go to advanced search