SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an iPad and iPhone I like to use to connect to my Mail Server in order to make any changes..
iPad xxx.xxx.146.105
iPhone xxx.xxx.4.19
They are on on the same Celluar Network...
If I add them individually to IPTABLES such as 'xxx.xxx.4.0/25' or 'xxx.xxx.146.0/25'
I can connect no problem but when I do 'xxx.xxx.0.0/25' then neither can access via SSH on the specific port.
I am assuming that either the 3rd series in the IP address are not same subnet therefore not allowing me or I am simply doing it wrong.
Your '/25' is x.x.4.1 - 128 and x.x.146.1 - 128 respectively.
So no x.x.0.0/25 is not going to work.
You are going to need to setup IPTABLES to allow the 2 /25 networks in, which is not Ideal as anyone on those network then has access to your server.
What you might wan to look into is setting up VPN that way only those that have the correct keys/password/passphrase will be allowed to connect. then you don't have to worry about who's going to have access to your system.
Your '/25' is x.x.4.1 - 128 and x.x.146.1 - 128 respectively.
So no x.x.0.0/25 is not going to work.
You are going to need to setup IPTABLES to allow the 2 /25 networks in, which is not Ideal as anyone on those network then has access to your server.
What you might wan to look into is setting up VPN that way only those that have the correct keys/password/passphrase will be allowed to connect. then you don't have to worry about who's going to have access to your system.
Never really even came to realize utilizing a VPN as an alternative... excited to go home and work on that. Would a VPN allow me to enter my shell prompt to modify scripts same as using my SSH App?
As far as adding the 2 /25 network access being a huge vulnerability, doesn't "AllowUsers=" and a Cert along with an unconventional access port remedy that? Just asking for knowledge sake... doing VPN regardless.
Would connecting via VPN then give me a LAN IP on the network allowing me to SSH in?
If you do OpenVPN with routed networking (tun) your VPN address will be something like 10.80.0.100, so you'll have to set up port forwarding from the LAN network to the VPN network "inside" your LAN. If you do OpenVPN with bridged networking (tap), bridging your ethernet card to the VPN adapter, your VPN will get an address in the LAN range. I've done both: bridged networking was easier and had a lot of benefits; routed networking was perhaps marginally more responsive, and, debatably, more secure.
It all depends on what your local topology is like; I don't know what VPN solutions are available for iphones and ipads. You might need these devices to go through a Slackware VPN gateway at the local end in order to connect them to the mail server at the remote VPN endpoint.
Last edited by Gerard Lally; 07-11-2017 at 09:42 PM.
If I add them individually to IPTABLES such as 'xxx.xxx.4.0/25' or 'xxx.xxx.146.0/25'
I can connect no problem but when I do 'xxx.xxx.0.0/25' then neither can access via SSH on the specific port.
Never really even came to realize utilizing a VPN as an alternative... excited to go home and work on that. Would a VPN allow me to enter my shell prompt to modify scripts same as using my SSH App?
I believe Gerard Lally has answered this for you.
Quote:
As far as adding the 2 /25 network access being a huge vulnerability, doesn't "AllowUsers=" and a Cert along with an unconventional access port remedy that? Just asking for knowledge sake... doing VPN regardless.
Thank you so much.
You can move the port to whichever port you'd like but that doesn't mean someone will never find it.
Best bet when using SSH is to use KEYS and ban ip addresses with too many retries.
You can move the port to whichever port you'd like but that doesn't mean someone will never find it.
Best bet when using SSH is to use KEYS and ban ip addresses with too many retries.
I would certainly hope not.
No. Moving ssh port isn't best and even isn't good.
To find changed port is trivial.
Using keys is good, but not protect from growing /var/log/messages file to to hudreds MB.
Effective solution is fwknop or openvpn.
No. Moving ssh port isn't best and even isn't good.
To find changed port is trivial.
Using keys is good, but not protect from growing /var/log/messages file to to hudreds MB.
Effective solution is fwknop or openvpn.
I think you missed to part where you ban ip's with too many retries. If your message file is growing that fast you have bigger problems.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.