[SOLVED] Help Me Configure My Firewall to Accept SSH...

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

[SOLVED] Help Me Configure My Firewall to Accept SSH...

Postby w201 on Fri Jan 25, 2013 10:10 pm

Hey everyone,

I can't seem to ssh into my mint machine from another linux machine, unless I turn off my firewall.

With the firewall active, If I go to administration >firewall configuration and add rules to allow ssh connections through port 22 from a LAN address to another LAN address, it still doesn't work. Any of you guys know how to set this up so I can ssh without having to turn off my firewall?

Thanks a bunch!
Last edited by w201 on Sat Jan 26, 2013 1:14 am, edited 1 time in total.
w201
Level 2
Level 2
 
Posts: 82
Joined: Wed Aug 22, 2012 8:34 pm

Linux Mint is funded by ads and donations.
 

Re: Help Me Configure My Firewall to Accept SSH Connections

Postby mint-me on Sat Jan 26, 2013 12:15 am

I assume you are using gufw/ufw.

Set the top drop-down, Incoming -> Allow
this will allow all incoming connections.

Allow ftp connection first, add rule from "Advanced" tab:
Allow > In > Both
From: IP [Client]
To: IP [Server] Port [22]

Then block all other incoming, add rules from "Simple" tab:
Deny > In > TCP 1:65535
Deny > In > UDP 1:65535

That should do it.
Mint 14 Cinnamon 64-bit | SolusOS 1.2 64-bit | SolusOS 2 Alpha7
Dell Inspiron 15R(N5110) - Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express Chipset HM67
NVIDIA GeForce GT 525M, 500GB SATA, 15.6" HD 1366x768 - nVidia Optimus Graphics powered by Bumblebee 3.
User avatar
mint-me
Level 2
Level 2
 
Posts: 62
Joined: Sat May 26, 2012 2:25 am
Location: australia

Re: Help Me Configure My Firewall to Accept SSH Connections

Postby w201 on Sat Jan 26, 2013 1:13 am

mint-me wrote:I assume you are using gufw/ufw.

Set the top drop-down, Incoming -> Allow
this will allow all incoming connections.

Allow ftp connection first, add rule from "Advanced" tab:
Allow > In > Both
From: IP [Client]
To: IP [Server] Port [22]

Then block all other incoming, add rules from "Simple" tab:
Deny > In > TCP 1:65535
Deny > In > UDP 1:65535

That should do it.


That did it, mint-me. You're a rockstar :mrgreen:
w201
Level 2
Level 2
 
Posts: 82
Joined: Wed Aug 22, 2012 8:34 pm

Re: [SOLVED] Help Me Configure My Firewall to Accept SSH...

Postby mint-me on Sat Jan 26, 2013 7:29 pm

Glad to be of help, w201.

The way you are doing it (SSH) is also my favorite, and most secure way to connect on the network.

Enjoy!
Mint 14 Cinnamon 64-bit | SolusOS 1.2 64-bit | SolusOS 2 Alpha7
Dell Inspiron 15R(N5110) - Intel i7-2670QM, 4GB DDR3 1333Mhz, Intel 6 Express Chipset HM67
NVIDIA GeForce GT 525M, 500GB SATA, 15.6" HD 1366x768 - nVidia Optimus Graphics powered by Bumblebee 3.
User avatar
mint-me
Level 2
Level 2
 
Posts: 62
Joined: Sat May 26, 2012 2:25 am
Location: australia


Return to Newbie Questions

Who is online

Users browsing this forum: Google Adsense [Bot], Google Feedfetcher, MtnDewManiac and 18 guests