Operating System - HP-UX
1830253 Members
2144 Online
110000 Solutions
New Discussion

Prevent user access to specific address

 
bent_1
Occasional Contributor

Prevent user access to specific address

hi all..
my server has 2 IP address..
how can i split user to access from only a specific address?
user get into server using telnet..
if i have 10 user..
how can i split 4 user to use first ip address
the other 6 use the second ip address?
3 REPLIES 3
Pete Randall
Outstanding Contributor

Re: Prevent user access to specific address

Give them little scripts to use to telnet. Each script would specify the ip address in the telnet command, rather than the hostname.


Pete

Pete
spex
Honored Contributor

Re: Prevent user access to specific address

If the clients are Windows boxes, you could add an entry to:

%windir%\system32\drivers\etc\hosts

of the form:



Have entries on four of your machines resolve to one IP address, and entries on the other six resolve to the other IP. Then telnet by hostname.

PCS
Ken Grabowski
Respected Contributor

Re: Prevent user access to specific address

Hi Bent,

Both of the other two answers will work. But I would question what it is you are trying to accomplish. Users coming into your server via telnet should not require you to split their network access for performance reasons or security. You should be able to host hundreds of users from a single network interface.

If you are trying to load balance, I would recommend setting the DNS server up in a round robin fashion for this server. Then every time it gets a request to resolve the name to an IP it will give an IP different from the last time.

What is it you are trying to accomplish?