Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ideas for a Network
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Tue Jul 05, 2005 10:17 am    Post subject: Ideas for a Network Reply with quote

Hello folks,

I am currently searching for ideas on improving my home-network.

The Situation:

Big Bad World <---->[ISP]<---(Transport Net)--->[Router-Box]<-----> Subnets, LAN, Link to another network

- The Router is a gentoo-Box with 5 real NICs and some tunnel devices
- The Subnets have official IPs
- The server machines in the subnets are gentoo-boxes
- Firewall Setup is rather restrictive - everything which is not allowed is forbidden
- every machine with an official IP needs port 22 open for maintenance, troubleshooting (putty via mobile phone, i.e.)

For the ones who look at the word 'home-network' in a strange way now, thinking that this girl here (me) has gone mad... yes it is my home-net. I like to do some overkill for it is good training and fun.

Problems on this network are the ssh login messages in the logs - I do not really care about bruteforce. Certificates for login. The way to do it would be blocking bad traffic at the router, but I do not have a clue how to setup a secure communication.
Commands over SSH with sudo? Parsing a file by cron filled with echo text >> file? :?

Thank you for your help

Rei
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9625
Location: beyond the rim

PostPosted: Tue Jul 05, 2005 11:16 am    Post subject: Reply with quote

Easiest solution: configure ssh to listen on a different port.
Other options: disable password logins (only allow keys) or disable root logins.
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Tue Jul 05, 2005 11:37 am    Post subject: Reply with quote

Genone wrote:
Other options: disable password logins (only allow keys) or disable root logins.


Quoting my post: I do not really care about bruteforce. Keys only for login doesn't clean out logs... you got tons of those entries:

Code:

Jul  5 10:05:42 surprise sshd[16565]: Invalid user admin from <insert  ip here>

_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Tue Jul 05, 2005 11:56 am    Post subject: Reply with quote

have you tried lowering sshd's LogLevel?
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Tue Jul 05, 2005 12:04 pm    Post subject: Reply with quote

mseigneurin, why letting that traffic in anyways?
I am more thinking about detecting such bruteforce trials and blocking them.

Rei
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Tue Jul 05, 2005 1:20 pm    Post subject: Reply with quote

Sorry, I misundestood what you meant by "don't care about brute force attacks".
You should look into blacklisting (dynamically) the IPs that try those attacks, or indeed use different ports
for ssh as Genome suggests.
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Tue Jul 05, 2005 3:33 pm    Post subject: Reply with quote

My idea is like detecting an attack on one of my hosts and denying that IP on the gateway machine.

Rei
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
avendesora
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1739
Location: Betelgeuse vicinity

PostPosted: Tue Jul 05, 2005 3:36 pm    Post subject: Reply with quote

Then look for an IDS systems (snort for instance) that can do what you're saying. There's plenty of doc out there for this.
Back to top
View user's profile Send private message
ToeiRei
Veteran
Veteran


Joined: 03 Jan 2005
Posts: 1191
Location: Austria

PostPosted: Tue Jul 05, 2005 3:42 pm    Post subject: Reply with quote

snort itself would only run correctly on the gateway box (network is switched), which I personally consider as a security risk.

Rei

Status update:

Currently I am monitoring my SSHd on each box with app-admin/swatch which works by analyzing the syslog. This is not realtime, but a good start. If bruteforcing is found, a command is executed to set a deny rule on the firewall - (Howto from gentoo-wiki)
_________________
Please stand by - The mailer daemon is busy burning your messages in hell...
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Tue Jul 05, 2005 7:48 pm    Post subject: Reply with quote

might be a good starting point for your issue...

http://www.pettingers.org/code/SSHBlack.html
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum