DNS Help?
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

DNS Help?

Started by DuckHuntINPro, 10 November, 2004, 23:36:55

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DuckHuntINPro

Hey guys, I was just wondering.....I need to only allow people to connect to my ptokax server that are on my campus.  Is there a way to only allow people with a certain/multiple specified DNS(s) to connect? for example resnet.indiana.edu or something? thanks

bastya_elvtars

there should be a pinger out, but hmmm what is the ip range?
Everything could have been anything else and it would have just as much meaning.

DuckHuntINPro

#2
ok, i found out that i need to only allow people with IP's that start with 128.211.###.### to connect.....my campus designates all its connections to start with 128.211   so like i said, as long as the persons ip starts with 128.211 the last 2 slots ###.### are assigned dynamically of course.  How can i make sure this works? and if you tell me code, where does this code go? and can you make an error response to say something like "you are not on a campus connection, you are not allowed in" to show up? thanks

bastya_elvtars

Simplicity owns!

-- made by bastya_elvtars for DuckHuntINPro

iptostartwith="128.211." -- 

function NewUserConnected(user)
	if strsub(user.sIP,1,8)~=iptostartwith then
		user:SendData("ipchk","this is a private hub")
		user:Disconnect()
	end
end
Everything could have been anything else and it would have just as much meaning.

DuckHuntINPro

well, i tried mutors script and it works fine so far, except i ran into another problem.   the script seems to be checking the internal ip, not the external.  when i say internal i mean that if the person is connected behind a router even fi they are on the 128.211 it won't let them connect.  is there a way to fix the script so it checks the external (world) ip, not what the actual computer is sitting on?

SMF spam blocked by CleanTalk