Commit graph

182 commits

Author SHA1 Message Date
Eddie Jennings, Jr
6ef496d56a Reconfigure IPv6
Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Configure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Reconfigure IPv6

Configure IPv6

Update IPv6 address for noc02 rule

Update IPv6 address in confg for noc02 address change

Update IPv6 address for proxy04

Update IPv6 address for torrent02
2021-11-08 22:56:05 +00:00
Kevin Fenzi
ee49c53f08 base / iptables: Adjust iptables on all vpn hosts to drop less secure traffic
Most of our vpn hosts are on a 192.168.1.0/24 network.
However we have a small number on a 'less secure' 'less trusted' subnet:
192.168.100.0/24. This change adds in logic to:
* on log01, allow rsyslog from 192.168.100.x hosts
* on ipa servers, allow ipa ports for 192.168.100.x hosts
* then reject everything else.
This will make sure 192.168.100.x hosts can only hit ssh and the two
above items, otherwise all vpn hosts will reject their traffic. This
should add a bit of security to having those hosts on the vpn.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-05-04 21:15:05 +00:00
Kevin Fenzi
fc2db16120 iptables / kojibuilder: add some more ports needed by ipa-clients
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-03-29 15:20:00 -07:00
Kevin Fenzi
6bf8552e7f base / iptables / kojibuilder: add ipa ports for koji builder ipa clients
Note that this will not yet work, it needs the RHIT firewall between
vlans opened on these ports first, but after that this is needed to
allow them to use those ports.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-03-25 10:10:55 -07:00
Kevin Fenzi
55cc28c3b1 base / iptables: Add rules to block staging networks on prod hosts
In IAD2 the prod and stg hosts are on different VLANs, so we thought we
didn't need this. However, we are still seeing some odd mixing of prod
and stg fedmsgs, so likely some fedmsg port has become enabled accross
all the VLANS. In any case this should do no harm, it just adds 2
subnets on all prod hosts to block staging, except for a small number of
staging_friendly hosts (in the staging_friendly ansible group).

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2021-03-19 20:08:05 +00:00
Kevin Fenzi
71d475085b iptables / koji_builder: update ip address for pagure.io
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-10-01 16:55:00 -07:00
Stephen Smoogen
8d58708305 remove 10.5.126 ips from nrpe to try and figure out why host was not connecting 2020-09-23 17:08:17 -04:00
Stephen Smoogen
fede1317e7 proxy*.stg.iad2.fedoraproject.org is not on the vpn 2020-08-31 11:09:14 -04:00
Kevin Fenzi
c96131045d base / iptables / kojibuilder: allow port 80 on new s390x cache instance
Moving the local to s390x cache from 07 (a zvm instance) to 24 (a kvm
instance) needs to adjust the firewalls for those builders to know that
they can use port 80 on the new one. After that we will update dns to
point it to the new location.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-08-03 12:40:54 -07:00
Kevin Fenzi
e1d77f58d6 base / iptables / staging: drop nat section in iptables
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-07-18 16:25:45 -07:00
Kevin Fenzi
a02d9a2da0 base / iptables / koji_builder: The s390x hosts need to talk to kojipkgs01/02
Actually it's only the varnish caching host that needs to talk to them
at this point, but might as well allow it on any of them in case we
switch how the caching works there or the like.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-07-06 10:38:44 -07:00
Kevin Fenzi
4857a1f032 iptables: drop kojibuilder_iad2 in favor of kojibuilder, add tang access
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-07-01 14:04:55 -07:00
Kevin Fenzi
5a7245bf26 iptables / nagios_client/server: clean up more phx2 ips for iad2
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-30 14:51:43 -07:00
Kevin Fenzi
f8c4957c95 iptables: adjust for new noc01 ip, drop some iptables files no longer used.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-30 14:24:09 -07:00
Kevin Fenzi
eea681dccc base iptables: drop phx2 from osuosl allowed for ssh networks
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 15:39:10 -07:00
Kevin Fenzi
814ae5c182 drop qa_isolated.
We no longer need this as it was put in place when taskotron was going
to run user provided tests. Since the only left in 'qa' is openqa and it
only tests fedora images/updates and is still also in it's own vlan, we
no longer need to reject things in qa from the rest of their same vlan.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 15:34:00 -07:00
Kevin Fenzi
7984b46eb7 The great phx2 pruning run (1st cut).
Since we no longer have any machines in phx2, I have tried to remove
them from ansible. Note that there are still some places where we need
to remove them still: nagios, dhcp, named were not touched, and in cases
where it wasn't pretty clear what a conditional was doing I left it to
be cleaned up later.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-14 14:14:31 -07:00
Stephen Smoogen
f65a48aa61 allow log01 to get logs from proxies and other hosts. fix both iptables and rsyncd 2020-06-12 11:01:08 -04:00
Kevin Fenzi
1f467abfce iad2: drop phx2 koji builder iptables, fix iad2 iptables to not have a syntax error
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-09 19:55:04 -07:00
Stephen Smoogen
3bc4a7e946 bastion and batcave and other things need 22 for osuosl 2020-06-08 20:27:52 -04:00
Kevin Fenzi
1135514bd4 osuosl: add mm-backend external ip for ssh on osuosl proxies so we can sync mm data.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-08 13:26:41 -07:00
Stephen Smoogen
98d8ec7a8f fix 53 in both places 2020-06-07 15:44:26 -04:00
Stephen Smoogen
0266f2541d fix the kojibuilder firewall for udp and ss 2020-06-07 15:41:54 -04:00
Stephen Smoogen
11baf9ef99 try adding a hosts files for the s390 builders 2020-06-07 15:35:15 -04:00
Stephen Smoogen
d099a158f6 this should allow IAD2 to SSH into s390 2020-06-07 14:54:43 -04:00
Stephen Smoogen
20874816e4 and this should allow PHX2 systems to get to RHEL content 2020-06-07 12:12:52 -04:00
Kevin Fenzi
348817447e base / iptables: also add output rule for the ssh mount
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-06 17:32:44 -07:00
Kevin Fenzi
fff697a707 base / iptables: add iad2 ips to kojibuilder (phx2) section
We need to add this for s390x machines so they can talk to and be
managed by iad2 stuff. phx2 builders should not be affected, and
s390 builders only get the new rules added, so they should keep working
with phx2. We will need to clean this up after the move and remove all
the phx2 stuff.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-06 17:28:37 -07:00
Stephen Smoogen
16875c357d try to get this to work for builders in iad2 2020-06-06 10:39:09 -04:00
Kevin Fenzi
dd952da38b base / iptables: drop old openstack template and update osusol with new batcave egress ip
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-06-04 10:36:08 -07:00
41f79ab8d2 dhcp/inventory: removing beaker and beaker-client
Removing references to beaker and the hosts that were part of that setup
2020-06-02 18:52:47 +00:00
Kevin Fenzi
eaf3837e58 kojibuilder: Break out a new set of iptables rules for iad2
Put all the rules in the kojibuilder file so we can just nuke the phx2
part later and not have to move groups around, etc.

Also, nuke the old unused bkernel network template.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-28 14:40:04 -07:00
Kevin Fenzi
9f9eba3716 base / iptables: drop nat and raw chains from here, as f32 does not like them
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-25 13:31:04 -07:00
Stephen Smoogen
d951a6f19e try this logic for later 2020-04-24 21:34:28 +02:00
Stephen Smoogen
05e9125c67 why this works for 90 hosts but not this one I do not know 2020-04-24 21:34:28 +02:00
Stephen Smoogen
3800b05f64 this is the last fix before fing hardcoding the ips 2020-04-24 21:34:28 +02:00
Stephen Smoogen
264360cac8 try to figure out if this will fix the error 2020-04-24 21:34:28 +02:00
Adam Williamson
ee006a8d3e openqa: update iptables NAT rule implementation
Since we set this up, @puiterwijk added a nice `nat_rules` thing
that lets us add NAT rules without forking the iptables template,
and I just set up the `openqa_tap_iface` variable to avoid the
stupid thing where I hardcoded all the possible interface names
for different arches. So let's use those two together FOR GREAT
JUSTICE! Or possibly just to break everything, you know, we'll
find out shortly.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-04-24 21:34:26 +02:00
Pavel Raiskup
2ff45e328d iptables: No stg ip override in aws.fedoraproject.org
Complements a90e9070cd
2020-04-24 21:34:24 +02:00
Kevin Fenzi
25160d44aa base / iptables: allow buildvm-s390x-17 to also access koji mount
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:21 +02:00
Kevin Fenzi
e94fcbd825 iptables: fix group name, it's proxies_internal not proxies-internal.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:16 +02:00
Kevin Fenzi
8315ba9108 koji / buildvm-s390x-01.s390: Move this to a normal builder, remove from compose channel
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:12 +02:00
Kevin Fenzi
56e229734b kojibuilder / iptables: also allow buildvm-s390x 15 and 16 sshfs
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-07-16 15:59:28 +00:00
Kevin Fenzi
8ac70aee03 koji_builder: update iptables for new pagure.io ip address.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-07-13 05:26:00 +00:00
Stephen Smoogen
4020cec510 [storinator] make changes so that storinator can work in cloud 2019-05-29 22:55:28 +00:00
Kevin Fenzi
4b31ac5152 ansible: Change all our group names from foo-bar to foo_bar or foo-bar-baz to foo_bar_baz
In ansible 2.8 the - character isn't supposed to be valid in group names.
While we could override this, might has well just bite the bullet and change it.
So, just switch all group names to use _ instead of -

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-20 17:38:09 +00:00
Kevin Fenzi
7e18ec152d mm-frontend-checkin01: add totpci to iptables so sudo will work.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-09 16:48:11 +00:00
Kevin Fenzi
b86e4987b8 compose-x86_64-02: Drop compose-x86-02, it's not used for anything anymore.
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-04-12 22:14:58 +00:00
Patrick Uiterwijk
d7fa58f05c Allow nagios to proxy-only ports as well
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2019-03-29 00:59:47 +01:00
Patrick Uiterwijk
418c704a49 iptables: Use correct interface for correct side
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2019-03-29 00:32:15 +01:00