Adding External IP Subnet to IPTABLES
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. Thanks for any help. |
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. |
Quote:
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. Thank you so much. |
Would connecting via VPN then give me a LAN IP on the network allowing me to SSH in?
|
Quote:
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. |
Quote:
|
Quote:
Quote:
Best bet when using SSH is to use KEYS and ban ip addresses with too many retries. Quote:
|
Quote:
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. |
Quote:
|
All times are GMT -5. The time now is 01:02 PM. |