- What Needs
to be Changed to Restrict Access to the Gateway
-
- Change the last line of the
code starting at row 4761 of client.c to whatever restrictions you
like.
- 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)) {
-
^^^^^^^^
-
- You probably also need to set
your netmask and your domain. Change around line 3309 of util.c the
line bc=... :
- 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.
-
- You also may want to change
the default domain name. Around line 3976 of client.c (I didn't find
this one?) :
- 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.
-