Firewall problems

Issues related to configuring your network
Post Reply
supertight
Posts: 171
Joined: 2017/02/07 21:47:51

Firewall problems

Post by supertight » 2018/02/27 21:35:25

My workstation is on subnet 172.16.0.0/22, servers are on subnet 192.186.1.0/24
With the firewall off, I can ssh into the servers with no problem.
I set the firewall zone for eth0 to public and added the services SSH / HTTP. When I reload the firewall, I get locked out.

What the Heck :?:

Is there something I should know about the firewall across subnets? The subnets are separated by a consumer grade cisco router(EA2700).
I know for sure the problem is in firewalld on the servers. It works when firewalld is off.

supertight
Posts: 171
Joined: 2017/02/07 21:47:51

Re: Firewall problems

Post by supertight » 2018/02/28 22:54:00

So, I'm using the wireless interface so I can set the machine right next to me while I configure because I get locked out many times. Because I'm a noob and make mistakes. The firewall seems to block everything when eth0 is up. If I use "ifdown eth0" and shutoff the interface. Like magic, the firewall lets me ssh into the wireless interface @ ".1.101".

I'm still testing other configs. I'll keep making notes here.

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Firewall problems

Post by TrevorH » 2018/02/28 23:32:17

Don't tell it to set the default route on both interfaces. Pick one and stick to it.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

supertight
Posts: 171
Joined: 2017/02/07 21:47:51

Re: Firewall problems

Post by supertight » 2018/03/01 02:04:19

TrevorH wrote:Don't tell it to set the default route on both interfaces. Pick one and stick to it.

I want to set the router forward to use eth0(.1.2) to host http and use wlan0(.1.101) to allow everything else originating from inside my network.

Will that work or do I need to re-think my strategy?

supertight
Posts: 171
Joined: 2017/02/07 21:47:51

Re: Firewall problems

Post by supertight » 2018/03/01 07:06:04

supertight wrote:
TrevorH wrote:Don't tell it to set the default route on both interfaces. Pick one and stick to it.

I want to set the router forward to use eth0(.1.2) to host http and use wlan0(.1.101) to allow everything else originating from inside my network.

Will that work or do I need to re-think my strategy?

I ran

Code: Select all

$ ip route
$ ip route del ***.***.1.1
This removed the default route for eth0. Reboot and still locked out. I'm sure I did this wrong. Can you point me in the correct direction?

Post Reply