What Needs to be Changed to Restrict Access to the Gateway


if(remote &&
strncmp(remote,"127.",4) &&
strncmp(remote,"10.",3) &&
strncmp(remote,"192.168",7) &&
(strncmp(remote,"172.",4) ||
strncmp(remote+4,"16",2)<0 ||
strncmp("31",remote+4,2)<0) &&
strncmp(remote,"130.89.3",7)) {
^^^^^^^^

if(WWW) {
bc=(unsigned long)((130+89*256)+(unsigned long)(255*256+220)*65536);
if_bcast->s_addr = bc;
} else if_bcast->s_addr = htonl(bc);

The broadcast is here set to 130.89.220.255.

if (failed) {
// Check if host.student.utwente.nl exists...
sprintf(namebuf,"%s.student.utwente.nl",host);
hst=gethostbyname(namebuf);
if(hst) {
putip((char *)&dest_ip,hst->h_addr_list[0]);
failed = False;
}
}

Change "%s.student.utwente.nl" to whatever domain you want.