| Linode Forum https://forum.linode.com/ |
|
| N00b question about iptables https://forum.linode.com/viewtopic.php?f=19&t=9201 |
Page 1 of 1 |
| Author: | castaad [ Sat Jul 28, 2012 2:27 pm ] |
| Post subject: | N00b question about iptables |
Hi, I have 2 Linodes (App1 and App2) running a web application behind a NodeBalancer. The two application servers connect to a database server (DB1) though a 2nd NodeBalancer. Both application servers were able to access the database server through the NodeBalancer until I implimented iptables to secure the database server (DB1). I've included my iptables config below - please could someone help and advise a suitable rule? Would really appreciate your help. In an attempt to get things working I implemented the "# Allow connections from other Linodes" section with all the Linode IP's but this doesn't seem to have worked. Code: *filter |
|
| Author: | castaad [ Sat Jul 28, 2012 6:22 pm ] |
| Post subject: | Re: N00b question about iptables |
Hi, I've managed to fix this with; -A INPUT -p tcp -m tcp -s 192.168.0.0/16 --dport 3306 -j ACCEPT After establishing with Linode support that NodeBalancer IP addressers are not static, but operate within the 192.168.0.0/16 range. Thanks, Adam. |
|
| Author: | mnordhoff [ Mon Jul 30, 2012 3:32 am ] |
| Post subject: | Re: N00b question about iptables |
Um... 192.168.0.0/16 also covers the private IPs of every other customer in the data center, and a /17 that isn't used at all. That's a really bad idea. You should ask Linode for a more specific address range that's only used by NodeBalancers -- IIRC they used to be on 192.168.255/24 or so. |
|
| Author: | theckman [ Wed Aug 01, 2012 11:01 am ] |
| Post subject: | Re: N00b question about iptables |
mnordhoff wrote: Um... 192.168.0.0/16 also covers the private IPs of every other customer in the data center, and a /17 that isn't used at all. That's a really bad idea. You should ask Linode for a more specific address range that's only used by NodeBalancers -- IIRC they used to be on 192.168.255/24 or so. Yes, NodeBalancers do use 192.168.255.0/24. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|