Re: question about SSH / IPTABLES

2003-01-26 Thread Pedro Diaz Jimenez
> > > Sent: Thursday 23 January 2003 13:18 > > > To: Charl Matthee > > > Cc: debian-security@lists.debian.org > > > Subject: Re: question about SSH / IPTABLES > > > > > > > > > Kaixo Charl Matthee!!! > > > > > > > I

Re: question about SSH / IPTABLES

2003-01-26 Thread Pedro Diaz Jimenez
] > > > Sent: Thursday 23 January 2003 13:18 > > > To: Charl Matthee > > > Cc: [EMAIL PROTECTED] > > > Subject: Re: question about SSH / IPTABLES > > > > > > > > > Kaixo Charl Matthee!!! > > > > > > > If yo

Re: question about SSH / IPTABLES

2003-01-26 Thread Alex
execute in noexec directories? Is the bug gone? Alex > > > -Original Message- > > From: Iñaki Martínez [mailto:[EMAIL PROTECTED] > > Sent: Thursday 23 January 2003 13:18 > > To: Charl Matthee > > Cc: debian-security@lists.debian.org > > Subject: R

Re: question about SSH / IPTABLES

2003-01-26 Thread Alex
execute in noexec directories? Is the bug gone? Alex > > > -Original Message- > > From: Iñaki Martínez [mailto:[EMAIL PROTECTED]] > > Sent: Thursday 23 January 2003 13:18 > > To: Charl Matthee > > Cc: [EMAIL PROTECTED] > > Subject: Re: question abou

Re: question about SSH / IPTABLES

2003-01-23 Thread InfoEmergencias - Luis Gómez
El Jue 23 Ene 2003 13:45, DEFFONTAINES Vincent escribió: > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch, so they can only use binaries installed (and > allowed to them) on the system. Beware that noexec can be easily cheated: <--> ad

Re: question about SSH / IPTABLES

2003-01-23 Thread Guille -bisho-
A simpler way would be use: - The connection tracking abilities of the iptables. For example DROP NEW connections from upper ports (this way you are not going to have problems with stablished conections as the ssh login into the machine) OR: - At TCP level, match flag like SYN to avoid sta

Re: question about SSH / IPTABLES

2003-01-23 Thread InfoEmergencias - Luis Gómez
El Jue 23 Ene 2003 13:45, DEFFONTAINES Vincent escribió: > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch, so they can only use binaries installed (and > allowed to them) on the system. Beware that noexec can be easily cheated: <--> ad

Re: question about SSH / IPTABLES

2003-01-23 Thread Guille -bisho-
A simpler way would be use: - The connection tracking abilities of the iptables. For example DROP NEW connections from upper ports (this way you are not going to have problems with stablished conections as the ssh login into the machine) OR: - At TCP level, match flag like SYN to avoid sta

Re: question about SSH / IPTABLES

2003-01-23 Thread Vittorio R Tracy
you may also try rbash as a shell type (in /etc/passwd), it is not super secure, and people can still use their own binaries, but you can restrict them to their own home directory and whatevers in their path. Its lazy persons way out of doing chroots for all. more info in the man for bash VRT <--

Re: question about SSH / IPTABLES

2003-01-23 Thread Vittorio R Tracy
you may also try rbash as a shell type (in /etc/passwd), it is not super secure, and people can still use their own binaries, but you can restrict them to their own home directory and whatevers in their path. Its lazy persons way out of doing chroots for all. more info in the man for bash VRT <--

Re: question about SSH / IPTABLES

2003-01-23 Thread Giacomo Mulas
On Thu, 23 Jan 2003, Jean Christophe ANDRÉ wrote: > But far more secure : apt-cache show kernel-patch-2.4-grsecurity This is a real solution, but it takes quite a bit of effort to configure things right. I investigated it some time ago but after a little bit of fiddling I realized it would take a

Re: question about SSH / IPTABLES

2003-01-23 Thread andrew lattis
On 2003/01/23 12:24:49PM +0100, Thu, I?aki Mart?nez wrote: > Hi!!! > > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want they to be able to use SSH from that server. > > So i client can access the server via SSH, but s/he CAN NOT ssh to other > se

Re: question about SSH / IPTABLES

2003-01-23 Thread Jean Christophe ANDRÉ
Ralf Dreibrodt écrivait : > Is there any packet filter, which can block only outgoing ssh-sessions? One may use the "string" extension to iptables to match "SSH"? See there: http://www.netfilter.org/documentation/pomlist/pom-extra.html#string Regards, J.C.

Re: question about SSH / IPTABLES

2003-01-23 Thread Phillip Hofmeister
On Thu, 23 Jan 2003 at 12:24:49PM +0100, I?aki Mart?nez wrote: > Hi!!! > > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want they to be able to use SSH from that server. > > So i client can access the server via SSH, but s/he CAN NOT ssh to other

Re: question about SSH / IPTABLES

2003-01-23 Thread Jean Christophe ANDRÉ
DEFFONTAINES Vincent wrote: > You can > 1. Remove the users access to the ssh program > (eg change ownership and rights of /usr/bin/ssh and create a "ssh" group for > allowed outgoing ssh users). > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch,

RE: question about SSH / IPTABLES

2003-01-23 Thread Giacomo Mulas
On Thu, 23 Jan 2003, DEFFONTAINES Vincent wrote: > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch, so they can only use binaries installed (and > allowed to them) on the system. Do that. Then try /lib/ld.so a_program_on_a_noexec_partition, and

Re: [security-unixtech] Re: question about SSH / IPTABLES

2003-01-23 Thread Stanislas Rusinsky
> > what if you have the no-port-forwarding in authorized_keys? > > Mike I'm not not totally sure but I think it is only for forbidding changing the port where to connect w/ ssh. This option is sometimes used for tunneling others applications over SSH or for passing trough NATs and FW afai

Re: question about SSH / IPTABLES

2003-01-23 Thread Giacomo Mulas
On Thu, 23 Jan 2003, Jean Christophe ANDRÉ wrote: > But far more secure : apt-cache show kernel-patch-2.4-grsecurity This is a real solution, but it takes quite a bit of effort to configure things right. I investigated it some time ago but after a little bit of fiddling I realized it would take a

Re: question about SSH / IPTABLES

2003-01-23 Thread andrew lattis
On 2003/01/23 12:24:49PM +0100, Thu, I?aki Mart?nez wrote: > Hi!!! > > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want they to be able to use SSH from that server. > > So i client can access the server via SSH, but s/he CAN NOT ssh to other > se

Re: question about SSH / IPTABLES

2003-01-23 Thread Jean Christophe ANDRÉ
Ralf Dreibrodt écrivait : > Is there any packet filter, which can block only outgoing ssh-sessions? One may use the "string" extension to iptables to match "SSH"? See there: http://www.netfilter.org/documentation/pomlist/pom-extra.html#string Regards, J.C. -- To UNSUBSCRIBE, email to [EMAIL

Re: question about SSH / IPTABLES

2003-01-23 Thread Rolf Kutz
* Quoting DEFFONTAINES Vincent ([EMAIL PROTECTED]): > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch, so they can only use binaries installed (and > allowed to them) on the system. This does not prevent them from executing binaries. This has b

Re: [security-unixtech] Re: question about SSH / IPTABLES

2003-01-23 Thread Stanislas Rusinsky
> > what if you have the no-port-forwarding in authorized_keys? > > Mike I'm not not totally sure but I think it is only for forbidding changing the port where to connect w/ ssh. This option is sometimes used for tunneling others applications over SSH or for passing trough NATs and FW afai

Re: question about SSH / IPTABLES

2003-01-23 Thread Phillip Hofmeister
On Thu, 23 Jan 2003 at 12:24:49PM +0100, I?aki Mart?nez wrote: > Hi!!! > > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want they to be able to use SSH from that server. > > So i client can access the server via SSH, but s/he CAN NOT ssh to other

Re: [security-unixtech] Re: question about SSH / IPTABLES

2003-01-23 Thread Mike Dresser
On 23 Jan 2003, Stanislas Rusinsky wrote: > in sshd_conf : > > AllowTcpForwarding no : > Specifies whether TCP forwarding is permitted. The default > is > ``yes''. Note that disabling TCP forwarding does not improve security > unless users are also denied shell access, as they

Re: question about SSH / IPTABLES

2003-01-23 Thread Ralf Dreibrodt
Hi, DEFFONTAINES Vincent wrote: > > 1. Remove the users access to the ssh program > (eg change ownership and rights of /usr/bin/ssh and create a "ssh" group for > allowed outgoing ssh users). > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch, s

Re: question about SSH / IPTABLES

2003-01-23 Thread Daniel Kobras
On Thu, Jan 23, 2003 at 01:45:47PM +0100, DEFFONTAINES Vincent wrote: > You can > 1. Remove the users access to the ssh program > (eg change ownership and rights of /usr/bin/ssh and create a "ssh" group for > allowed outgoing ssh users). > 2. Mount /home, /tmp and any other place users might have w

RE: question about SSH / IPTABLES

2003-01-23 Thread Giacomo Mulas
On Thu, 23 Jan 2003, DEFFONTAINES Vincent wrote: > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch, so they can only use binaries installed (and > allowed to them) on the system. Do that. Then try /lib/ld.so a_program_on_a_noexec_partition, and

Re: question about SSH / IPTABLES

2003-01-23 Thread Jean Christophe ANDRÉ
DEFFONTAINES Vincent wrote: > You can > 1. Remove the users access to the ssh program > (eg change ownership and rights of /usr/bin/ssh and create a "ssh" group for > allowed outgoing ssh users). > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch,

Re: [security-unixtech] Re: question about SSH / IPTABLES

2003-01-23 Thread Stanislas Rusinsky
> > If you want to use iptables then allow incoming ssh requests from the > > relevant hosts and disallow outgoing ssh request from the server: > > > > iptables -A OUTPUT -j REJECT -p tcp --destination-port 22 > > But if the client jump to another port "GatewayPorts no" in sshd_config : Sp

Re: [security-unixtech] Re: question about SSH / IPTABLES

2003-01-23 Thread Stanislas Rusinsky
> > I have a server in internet and i want several clients to access to it via > > SSH but i DON'T want they to be able to use SSH from that server. > > > > So i client can access the server via SSH, but s/he CAN NOT ssh to other > > servers from my server... > in sshd_conf : AllowTcpForwar

RE: question about SSH / IPTABLES

2003-01-23 Thread DEFFONTAINES Vincent
anuary 2003 13:18 > To: Charl Matthee > Cc: debian-security@lists.debian.org > Subject: Re: question about SSH / IPTABLES > > > Kaixo Charl Matthee!!! > > > If you want to use iptables then allow incoming ssh > requests from the > > relevant hosts and disallow

Re: question about SSH / IPTABLES

2003-01-23 Thread Charl Matthee
On Thu Jan 23 2003 at 01:17:21PM +0100 'I?aki Mart?nez' <[EMAIL PROTECTED]> wrote: > But if the client jump to another port That is the shortcoming of using this solution. > I think there is no COMPLETE solution If there is a rule there is generally some way around it ;) you need

Re: question about SSH / IPTABLES

2003-01-23 Thread Rolf Kutz
* Quoting DEFFONTAINES Vincent ([EMAIL PROTECTED]): > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch, so they can only use binaries installed (and > allowed to them) on the system. This does not prevent them from executing binaries. This has b

Re: [security-unixtech] Re: question about SSH / IPTABLES

2003-01-23 Thread Mike Dresser
On 23 Jan 2003, Stanislas Rusinsky wrote: > in sshd_conf : > > AllowTcpForwarding no : > Specifies whether TCP forwarding is permitted. The default is > ``yes''. Note that disabling TCP forwarding does not improve security > unless users are also denied shell access, as they ca

Re: question about SSH / IPTABLES

2003-01-23 Thread Iñaki Martínez
Kaixo Charl Matthee!!! > If you want to use iptables then allow incoming ssh requests from the > relevant hosts and disallow outgoing ssh request from the server: > > iptables -A OUTPUT -j REJECT -p tcp --destination-port 22 But if the client jump to another port $ ssh -p 25 remote_ip

Re: question about SSH / IPTABLES

2003-01-23 Thread Daniel Kobras
On Thu, Jan 23, 2003 at 01:45:47PM +0100, DEFFONTAINES Vincent wrote: > You can > 1. Remove the users access to the ssh program > (eg change ownership and rights of /usr/bin/ssh and create a "ssh" group for > allowed outgoing ssh users). > 2. Mount /home, /tmp and any other place users might have w

Re: question about SSH / IPTABLES

2003-01-23 Thread Kristof Goossens
On Thu, Jan 23, 2003 at 12:24:49PM +0100, Iñaki Martínez wrote: > Hi!!! > > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want they to be able to use SSH from that server. > > So i client can access the server via SSH, but s/he CAN NOT ssh to other

Re: question about SSH / IPTABLES

2003-01-23 Thread Charl Matthee
On Thu Jan 23 2003 at 12:24:49PM +0100 'I?aki Mart?nez' <[EMAIL PROTECTED]> wrote: > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want they to be able to use SSH from that server. > > So i client can access the server via SSH, but s/he CAN NOT ss

Re: question about SSH / IPTABLES

2003-01-23 Thread Jean Christophe ANDRÉ
Hi, Iñaki Martínez écrivait : > I have a server in internet and i want several clients to access to it > via SSH but i DON'T want they to be able to use SSH from that server. > So i client can access the server via SSH, but s/he CAN NOT ssh to other > servers from my server... > How can

Re: question about SSH / IPTABLES

2003-01-23 Thread Eduard Ballester
hi I have a server in internet and i want several clients to access to it via SSH but i DON'T want they to be able to use SSH from that server. So i client can access the server via SSH, but s/he CAN NOT ssh to other servers from my server... easy way: chmod 500 /usr/bin/ssh regards -- **

Re: question about SSH / IPTABLES

2003-01-23 Thread Ralf Dreibrodt
Hi, DEFFONTAINES Vincent wrote: > > 1. Remove the users access to the ssh program > (eg change ownership and rights of /usr/bin/ssh and create a "ssh" group for > allowed outgoing ssh users). > 2. Mount /home, /tmp and any other place users might have write access on > with the "noexec" switch, s

Re: question about SSH / IPTABLES

2003-01-23 Thread Mark Janssen
On Thu, 2003-01-23 at 12:24, Iñaki Martínez wrote: > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want them to be able to use SSH from that server. > So i client can access the server via SSH, but s/he CAN NOT ssh to other > servers from my server..

Re: question about SSH / IPTABLES

2003-01-23 Thread Rolf Kutz
* Quoting Iñaki Martínez ([EMAIL PROTECTED]): > So i client can access the server via SSH, but s/he CAN NOT ssh to other > servers from my server... > > How can i do this chmod o-x /usr/bin/ssh - rk -- "What sort of person," said Salzella patiently, "sits down and writes a maniacal laug

Re: [security-unixtech] Re: question about SSH / IPTABLES

2003-01-23 Thread Stanislas Rusinsky
> > If you want to use iptables then allow incoming ssh requests from the > > relevant hosts and disallow outgoing ssh request from the server: > > > > iptables -A OUTPUT -j REJECT -p tcp --destination-port 22 > > But if the client jump to another port "GatewayPorts no" in sshd_config : Sp

Re: [security-unixtech] Re: question about SSH / IPTABLES

2003-01-23 Thread Stanislas Rusinsky
> > I have a server in internet and i want several clients to access to it via > > SSH but i DON'T want they to be able to use SSH from that server. > > > > So i client can access the server via SSH, but s/he CAN NOT ssh to other > > servers from my server... > in sshd_conf : AllowTcpForwar

question about SSH / IPTABLES

2003-01-23 Thread Iñaki Martínez
Hi!!! I have a server in internet and i want several clients to access to it via SSH but i DON'T want they to be able to use SSH from that server. So i client can access the server via SSH, but s/he CAN NOT ssh to other servers from my server... How can i do this Some SSH configuration

RE: question about SSH / IPTABLES

2003-01-23 Thread DEFFONTAINES Vincent
anuary 2003 13:18 > To: Charl Matthee > Cc: [EMAIL PROTECTED] > Subject: Re: question about SSH / IPTABLES > > > Kaixo Charl Matthee!!! > > > If you want to use iptables then allow incoming ssh > requests from the > > relevant hosts and disallow outgoing ssh

Re: question about SSH / IPTABLES

2003-01-23 Thread Charl Matthee
On Thu Jan 23 2003 at 01:17:21PM +0100 'I?aki Mart?nez' <[EMAIL PROTECTED]> wrote: > But if the client jump to another port That is the shortcoming of using this solution. > I think there is no COMPLETE solution If there is a rule there is generally some way around it ;) you need

Re: question about SSH / IPTABLES

2003-01-23 Thread Iñaki Martínez
Kaixo Charl Matthee!!! > If you want to use iptables then allow incoming ssh requests from the > relevant hosts and disallow outgoing ssh request from the server: > > iptables -A OUTPUT -j REJECT -p tcp --destination-port 22 But if the client jump to another port $ ssh -p 25 remote_ip

Re: question about SSH / IPTABLES

2003-01-23 Thread Kristof Goossens
On Thu, Jan 23, 2003 at 12:24:49PM +0100, Iñaki Martínez wrote: > Hi!!! > > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want they to be able to use SSH from that server. > > So i client can access the server via SSH, but s/he CAN NOT ssh to other

Re: question about SSH / IPTABLES

2003-01-23 Thread Charl Matthee
On Thu Jan 23 2003 at 12:24:49PM +0100 'I?aki Mart?nez' <[EMAIL PROTECTED]> wrote: > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want they to be able to use SSH from that server. > > So i client can access the server via SSH, but s/he CAN NOT ss

Re: question about SSH / IPTABLES

2003-01-23 Thread Jean Christophe ANDRÉ
Hi, Iñaki Martínez écrivait : > I have a server in internet and i want several clients to access to it > via SSH but i DON'T want they to be able to use SSH from that server. > So i client can access the server via SSH, but s/he CAN NOT ssh to other > servers from my server... > How

Re: question about SSH / IPTABLES

2003-01-23 Thread Eduard Ballester
hi I have a server in internet and i want several clients to access to it via SSH but i DON'T want they to be able to use SSH from that server. So i client can access the server via SSH, but s/he CAN NOT ssh to other servers from my server... easy way: chmod 500 /usr/bin/ssh regards -- ***

Re: question about SSH / IPTABLES

2003-01-23 Thread Mark Janssen
On Thu, 2003-01-23 at 12:24, Iñaki Martínez wrote: > I have a server in internet and i want several clients to access to it via > SSH but i DON'T want them to be able to use SSH from that server. > So i client can access the server via SSH, but s/he CAN NOT ssh to other > servers from my server..

Re: question about SSH / IPTABLES

2003-01-23 Thread Rolf Kutz
* Quoting Iñaki Martínez ([EMAIL PROTECTED]): > So i client can access the server via SSH, but s/he CAN NOT ssh to other > servers from my server... > > How can i do this chmod o-x /usr/bin/ssh - rk -- "What sort of person," said Salzella patiently, "sits down and writes a maniacal laug

question about SSH / IPTABLES

2003-01-23 Thread Iñaki Martínez
Hi!!! I have a server in internet and i want several clients to access to it via SSH but i DON'T want they to be able to use SSH from that server. So i client can access the server via SSH, but s/he CAN NOT ssh to other servers from my server... How can i do this Some SSH configuration