LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Interaction between guarddog and ssh (https://www.linuxquestions.org/questions/linux-newbie-8/interaction-between-guarddog-and-ssh-625212/)

Spirals 03-02-2008 04:22 PM

Interaction between guarddog and ssh
 
I have guarddog running on two machines (Pene and laptop) conected by a 100Mb Hub. Both machines were installed from the same iso DVD and the oxford uk mirror. uname -a gives "Linux pene 2.6.18-6-k7 #1 SMP Sun Feb 10 22:16:15 UTC 2008 i686 GNU/Linux" I have now installed ssh and openssh-server. ssh -V gives "OpenSSH_4.3p2 Debian-9, OpenSSL 0.9.8c 05 Sep 2006". When I activate guarddog I do not see the lights on the hub flicker and I cannot log in or sftp files, which I can if I disable guarddog. advice to fix this please

acid_kewpie 03-02-2008 04:24 PM

well guarddog is a firewall gui, so it's pretty obvious that it's blocking it. change the guarddog settings to not block ssh (port 22)

Spirals 03-03-2008 08:58 AM

thanks fixed, but new problem
 
Hi, I had already ticked SSH-remote-login before I tried the list which I presumed would have done the trick. After your reply I created a new ssh entry under user protocols and now have local coms ok. thank you.


I am now trying to secure my email. I have a script secure-mail-link.sh the contents are:
"ssh -L 110:mail-host-path:110 -L 25:mail-host-path:25 -l user -N mail-host-path".
I run this in the background with a & but it times out after a few minutes.

My question is: how do I modify this script so the ssh-link invisibly comes up when I query the mail server or send email. So it is transparent and I can fire my script off when I log in and forget it? thanks again dja.

acid_kewpie 03-03-2008 09:36 AM

you can't do that on demand. well you could in theory, you can trigger iptables to run a command as a target with a few non-mainline iptables targets but realistically it's not going to be fun and I really wouldn't see that as a desirable long term thing.

Spirals 03-03-2008 05:29 PM

Thank you.
 
Thanks for your help.


All times are GMT -5. The time now is 12:08 AM.