The importance of subnets

woensdag 17 december 2008, 16:55  –  Geen reacties  -  Tags:

(Bericht overgenomen van Blackskad’s blog)

When I became an active member of zeus, we inherited a little network. It contained some desktops and several servers. They all had an ip in the subnet 10.1.1.0/24, and were connected to the internet using a single IP. (well, not completely true, there was a spare gateway. But that didn’t make any difference.)

We had a problem though: we couldn’t reach our webserver from internal clients using the normal url. When we wanted to surf to zeus.ugent.be, it just hang on “connecting to server”.

Well, tcpdump and wireshark to the rescue! Using those tools, we noticed this problem:

client= 10.1.1.10
webserver= 10.1.1.248
external ip= 157.193.55.238

10.1.1.10 -> ACK -> 157.193.55.238
10.1.1.10 -> ACK -> 10.1.1.248
10.1.1.10 <- SYN/ACK <- 10.1.1.248
10.1.1.10 -> RST -> 10.1.1.248

So what happened? The gateway at 157.193.55.238 notices that the traffic has to be send to the webserver. So it forwards the packets, but doesn’t apply address translations. Then the webserver answers to the client directly, instead of going throught the gateway. As the client doesn’t expect any answer from 10.1.1.248 but from 157.193.55.238, it sends a reset to the webserver.

After being unable to come up with a solution using iptables, we decided to use a more radical tactic: change a part of the network layout. The whole network is still located in the 10.1.1.0/24 subnet, but we’ve split it up in two: the clients in 10.1.1.0/25 and servers in 10.1.1.128/25 Using this setup, the gateway applies it’s address translation correctly, and we are able to surf to the website internally without problems! :)

While fixing this, we’ve set up a “new” gateway. During the years, both the iptables, the dns-rules and the dhcp-config gathered a lot of cruft – so we got rid of that too. Yay for clean configs :)

Server upgrade

dinsdag 28 oktober 2008, 14:34  –  Geen reacties  -  Tags:

De server waarop LDAP, NFS, MySQL en mail draaien, wordt geupgrade naar Ubuntu 8.04.1 Hierbij kunnen eventueel enkele storingen optreden, maar er wordt niets abnormaals verwacht. Alvast onze excuses moest er toch iets fout lopen.

[UPDATE] Na een hoop onverwachte miserie met LDAP+LTS, NFS en een webserver die niet wou booten zonder keyboard, zou nu alles weer in orde moeten zijn. Indien dit niet zo is, gelieve dan asap te mailen naar admin@zeus.ugent.be

[UPDATE 2] Na nog een probleem (RoundCube die SSL3 niet zo tof vond), zou nu ook de mail weer normaal moeten werken.

Zeus Refresh!

dinsdag 22 januari 2008, 22:04  –  Geen reacties  -  Tags:

Zeus ruimt op, virtueel dan deze keer! Met 4 verschillende webservers, een IRC-server, een ldap-server, een nfs-server, een mail-server, 3 mysql-database-servers 2 gateway/router/firewalls en een backupserver wordt het dringend eens tijd om relieken uit het verleden overboord te gooien en alles eens deftig op een rijtje te zetten. Specifieke plannen voor de Zeus Refresh zijn te vinden op de wiki[1].

Dit houdt dus wel in dat zowel de website, mail en IRC down kunnen zijn (geldt ook voor latex.ugent.be, sorry) We zullen echter proberen om deze downtimes zoveel mogelijk te beperken en waar mogelijk zelfs te vermijden.

Aangezien 2 en 3 februari in het weekend vallen, zal alle activiteit die dagen over ssh gebeuren, en zal er dus ook (normaal) niets down gaan. Als je een van de volgende dagen in de buurt van de S9 op de Sterre bent, aarzel dan niet om eens langs te komen!

Het bestuur.

[1] Zeus Refresh


Komende activiteiten

mei 2012
M D W D V Z Z
 123456
78910111213
14151617181920
21222324252627
28293031EC

Tags

Meest recente berichten

Archief