






Please give me the output of these commands (copy & paste):Pumalite wrote:ssh is installed.
sudo lsof -n -i -Psudo netstat -lnsudo iptables -L
I will kill you.Husse wrote: In this case the normally so reliable scorp123 was not reliable - to my knowledge iptables are incorporated in the 2.4.x and 2.6.x kernels and normally enabled in the kernel
I think I just did that ....Husse wrote: (Hope scorp doesn't slap me on my fingers

ah OK .... Hint: In the future always try the console too .... e.g. ssh youruser@remotehost .... Chances are that if there is any such error that you will see it in the console. GUI tools just "don't work" all of a sudden but they usually don't show any error message. Console tools always spit out error messages if something bothers them. So it's always worth trying a console connection too if "fish://" failsPumalite wrote: Tried again, and BOOM!!; I'm in.


But unless you define any firewall rules iptables will just sit there and do nothing. It doesn't block anything unless you tell it to do so.


Bullsh* ....Pumalite wrote: 'sudo lsof -n -i -P' is of a rather private nature so I prefer not to divulge ....
What's the point posting this when you cut out the interesting parts??Pumalite wrote: pumalite@pumalite-desktop:~$ sudo lsof -n -i -P
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
I did not ask for that command ....Pumalite wrote: sudo netstat -in
This shows that there is no active firewall rule whatsoever, and hence iptables isn't blocking anything.Pumalite wrote: pumalite@pumalite-desktop:~$ sudo iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
pumalite@pumalite-desktop:~$

Nope. That's just a "packet filter" (the difference being that a real "firewall" is supposed to be stateful and to always know who initiated what connection ... a "packet filter" doesn't care about that, it just filters ...) that hooks into a package called tcpwrappers ... It filters connection attempts based on those simple rules (e.g. "sshd: ALL" in /etc/hosts.deny ...) you define, but that's nowhere close to the sophisticated methods a real firewall can provide.Husse wrote: Anyway I use the ALL:ALL command in hosts.deny - but that is not iptables(or?
)

Chances are that you are using a private range (RFC 1918) IP address anyway (e.g. 192.168.1.* or 172.16.*.* or 10.*.*.* ...?) because you are most likely behind a router?Pumalite wrote:I just didn't want to publish my IP


Could you please explain those firewall rules in your example to us? I think that would be helpful for forum members who are interested to learn these things and e.g. write their own scripts.baomike wrote: Run it after you boot.

Users browsing this forum: LRChampagne2k and 21 guests