I have a problem with my Raspberry, I'm a bit of a newbie with Raspbian so I prefer to ask to someone and really understand what I'm doing.
Actually, I've installed ufw succesfully on my Raspberry. I typed basics rules on it like:
sudo ufw allow from 192.168.1.0/24 to any port 22
I can use Putty to connect to my Raspberry on the port 22 But, the problem is when I'm trying to open another port like 2222 for exemple:
sudo ufw allow from 192.168.1.0/24 to any port 2222
Putty tell me that the connection is refused. I tried: sudo ufw disable sudo service ufw stop sudo service ufw start sudo ufw enable sudo ufw reload
I've even used: sudo ufw reset
To restart from a clean base but I got the same problem ^^' My final purpose is to open a port to allow my Rasp as a proxy via openvpn, but if can't even choose my ssh port it's a problem! Maybe I should restart the rasp to allow ufw to make the changes?
Thank you and sorry for my english level ^^'