- Jun 13, 2000
- 26,391
- 1,780
- 126
I've got a server with 2 interfaces eth0 and eth1. I'm trying to maintain security on eth0 so it's not open to anyone outside of some particular vlans. It's configured and has worked great. I recently wanted to open web traffic up to the system, but need to do this over a new interface to protect the server and http content on eth0.
I setup eth1 to do this.
I've got a lot of rules specific to eth0, but never referenced eth0 in the rule. For example, this rule is in place to allow traffic to port 80 from 2.231:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -s 192.168.2.231 -j ACCEPT
When I added eth1, my eth1 entries look like this:
-A RH-Firewall-1-INPUT -i eth1 -p tcp --dport 8443 -d 192.168.1.106 -j ACCEPT
-A RH-Firewall-1-INPUT -o eth1 -p tcp --sport 8443 -d 192.168.1.106 -j ACCEPT
-A RH-Firewall-1-INPUT -i eth1 -p tcp --dport 9443 -d 192.168.1.106 -j ACCEPT
-A RH-Firewall-1-INPUT -o eth1 -p tcp --sport 9443 -d 192.168.1.106 -j ACCEPT
What's confusing me is that 9443 stopped talking about 30 minutes ago and I can't get it to work. Port 8443 continues to work. I can turn iptables off and everything works. I made no changes to iptables and it started acting up...any ideas why it worked before and it's not now? Is there a better way to do it? Most of the documentation I find for iptables when searching for 2 nics results in all the gateway configurations. I'm just trying to configure a 2 interface box to split security.
I setup eth1 to do this.
I've got a lot of rules specific to eth0, but never referenced eth0 in the rule. For example, this rule is in place to allow traffic to port 80 from 2.231:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -s 192.168.2.231 -j ACCEPT
When I added eth1, my eth1 entries look like this:
-A RH-Firewall-1-INPUT -i eth1 -p tcp --dport 8443 -d 192.168.1.106 -j ACCEPT
-A RH-Firewall-1-INPUT -o eth1 -p tcp --sport 8443 -d 192.168.1.106 -j ACCEPT
-A RH-Firewall-1-INPUT -i eth1 -p tcp --dport 9443 -d 192.168.1.106 -j ACCEPT
-A RH-Firewall-1-INPUT -o eth1 -p tcp --sport 9443 -d 192.168.1.106 -j ACCEPT
What's confusing me is that 9443 stopped talking about 30 minutes ago and I can't get it to work. Port 8443 continues to work. I can turn iptables off and everything works. I made no changes to iptables and it started acting up...any ideas why it worked before and it's not now? Is there a better way to do it? Most of the documentation I find for iptables when searching for 2 nics results in all the gateway configurations. I'm just trying to configure a 2 interface box to split security.