You are not logged in.

#1 2009-05-27 12:25:21

ftornell
Member
Registered: 2008-08-18
Posts: 277
Website

Archlinux fronting the Internet

Hi,
Was thinking of running Arch on one of my servers at home and open up for SSH in the router (portforward) to the arch server.

If I only run a basic archinstall with samba and a sshdaemon its kinda safe right?

I know the threat is always higher if you have more services running on the box but will only hold samba for local filesharing and ssh to connect to the server from my work!


[ logicspot.NET | mempad.org ]
Archlinux x64

Offline

#2 2009-05-27 12:38:23

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: Archlinux fronting the Internet

1. Run it on a non-standard port such as 2222 or 1022 etc.
2. Disable root login
3. Allow connections only from certain source addresses if possible.
4. Use key based authentication instead of passwords.

I run several Arch servers exposed to the internet with the above precautions and never had a problem.

Offline

#3 2009-05-27 14:11:28

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Archlinux fronting the Internet

And a nice firewall that closes up all possible holes (not just inbound traffic, also outbound traffic). You can't lock that stuff down enough smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#4 2009-05-27 14:39:52

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: Archlinux fronting the Internet

I also like to put an "AllowGroup sshusers" into sshd_config, that way only users in that group can do a remote login.

Offline

#5 2009-05-27 21:40:57

ftornell
Member
Registered: 2008-08-18
Posts: 277
Website

Re: Archlinux fronting the Internet

Thx guys, many suggestions...
Just one thought...what is key based authentication? smile


[ logicspot.NET | mempad.org ]
Archlinux x64

Offline

#6 2009-05-27 23:06:11

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: Archlinux fronting the Internet

Daenyth wrote:

I also like to put an "AllowGroup sshusers" into sshd_config, that way only users in that group can do a remote login.

Ah yes, I knew there was one I forgot, thanks smile

ftornell wrote:

Thx guys, many suggestions...
Just one thought...what is key based authentication? smile

http://www.ibm.com/developerworks/library/l-keyc.html
http://pkeck.myweb.uga.edu/ssh/

Last edited by fukawi2 (2009-05-27 23:07:34)

Offline

#7 2009-05-27 23:11:23

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,355

Re: Archlinux fronting the Internet

Port-knocking is a must i think. Simple to setup. of course, you'd need other security too


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2009-05-27 23:29:39

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: Archlinux fronting the Internet

ngoonee wrote:

Port-knocking is a must i think. Simple to setup. of course, you'd need other security too

Certainly another tool on the belt, but I wouldn't call it a must. Disallowing root login is a must.

Offline

#9 2009-05-29 10:57:42

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: Archlinux fronting the Internet

fukawi2 wrote:
ngoonee wrote:

Port-knocking is a must i think. Simple to setup. of course, you'd need other security too

Certainly another tool on the belt, but I wouldn't call it a must. Disallowing root login is a must.

changing the port too, or you will end up with hundreds of megabytes of failed logins in auth.log big_smile


btw can i set iptables to run a program/script when a packet matches a rule (passing source ip+port preferably)?


☃ Snowman ☃

Offline

#10 2009-05-29 11:43:02

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: Archlinux fronting the Internet

No... That would be a very quick way for someone to DoS your server.

Offline

Board footer

Powered by FluxBB