Author Topic: Pinning user to external IP address via Windows Server DHCP  (Read 3972 times)

0 Members and 2 Guests are viewing this topic.

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Pinning user to external IP address via Windows Server DHCP
« on: August 27, 2009, 11:31:49 am »
My office intranet uses a Windows Server 2003 server for exchange and DHCP hosting.

What I'd like to do is be able to pin selected users or computers (computers would be preferable and I think the only thing that could work right) to a specific external IP range.  Supposing I have an external IP address range of 192.168.1.100-110, and I want my computer to be on 105, is it possible to do this within just Windows DHCP configuration?  Or do I need to go somewhere else?
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #1 on: August 27, 2009, 12:00:28 pm »
I don't exactly understand what you mean, but I'll try and offer a couple options.

You talk about having an external ip range of 192.168.1.100-110, but those are internal IPs. Are you just using those as an example?

If you're trying to link an internal ip range with an external one, so, for example, 192.168.1.105 is always 1.2.3.105, that's called Static NAT. I don't think that's what you're looking for, but eh?

If you mean that you always want computer X to get 192.168.1.105 when they request a DHCP, that's called a 'reserved ip'. On the DHCP server, you can link the MAC address of a machine to a specific IP, and that machine will always get the same IP.

Are either of those what you're asking? :P

Offline Chavo

  • x86
  • Hero Member
  • *****
  • Posts: 2219
  • no u
    • View Profile
    • Chavoland
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #2 on: August 27, 2009, 12:09:00 pm »
Are you talking about just reserving IP assignments?  In your example, are the "external IP" addresses the address that you want the Server 2003 DHCP Server to assign to clients?

If so, you can create the IP reservations pretty simply:
Administrative Tools->DHCP->Find the right scope->Reservations->Add Reservations

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #3 on: August 27, 2009, 12:42:57 pm »
What I want is for me to go to www.whatismyip.com and always get the same external IP address.  I have a range of external IP addresses assigned by my ISP.  I need the same network clients, assigned by MAC address, to always get the same external IP address, because we need to whitelist them with our clients.

I figured out how to reserve internal IP addresses.  Maybe what iago suggested is correct - static NAT.  What I'm unclear about, though, is which part of my network plays in that space.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #4 on: August 27, 2009, 02:44:28 pm »
Per user (e.g. user account on Windows).... good luck. TehUser has been looking into this too. My dad thinks it's not possible.

If you mean per computer/NIC... yeah. You can reserve IPs based on MAC addresses, I'm nearly positive, but I haven't done it in a while with Windows' DHCP server. I'm not sure how a DHCP server falls into this, though -- if you're on a LAN, the DHCP server serves up internal IP addresses. Usually it'll be the gateway that would deal with making sure a machine always got the same external IP address. On my dad's network, you could one-to-one bidirectionally map an IP to a machine on the LAN. This sounds like what you're trying to do.

To be fair, I think the bidirectional mapping would ruin your capabilities to have an internal IP unless your machines all have 2 NICs.
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline Chavo

  • x86
  • Hero Member
  • *****
  • Posts: 2219
  • no u
    • View Profile
    • Chavoland
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #5 on: August 27, 2009, 03:06:21 pm »
If your ISP is simply assigning you a range of IPs but not providing any DHCP function, then you should be able to assign these with just the simple IP reservation.  Conversely, if you are paying for a range of IPs that your ISP is simply reserving for you, but still have to get the lease via DHCP (or some kind of static approach), then you do need to use Static NAT Routing to map these to internal IP addreses in conjunction with the IP reservation on the LAN side.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #6 on: August 27, 2009, 04:19:21 pm »
What I want is for me to go to www.whatismyip.com and always get the same external IP address.  I have a range of external IP addresses assigned by my ISP.  I need the same network clients, assigned by MAC address, to always get the same external IP address, because we need to whitelist them with our clients.

I figured out how to reserve internal IP addresses.  Maybe what iago suggested is correct - static NAT.  What I'm unclear about, though, is which part of my network plays in that space.

Is the Windows Server performing NAT? If so, I don't believe it's possible - at least, I wasn't able to figure out how to do it.

There are multiple solutions available for Linux and BSD (iptables et al); I'll elaborate if you're interested.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #7 on: August 27, 2009, 05:56:23 pm »
What I want is for me to go to www.whatismyip.com and always get the same external IP address.  I have a range of external IP addresses assigned by my ISP.  I need the same network clients, assigned by MAC address, to always get the same external IP address, because we need to whitelist them with our clients.

I figured out how to reserve internal IP addresses.  Maybe what iago suggested is correct - static NAT.  What I'm unclear about, though, is which part of my network plays in that space.
I'm pretty sure static NAT is what you want. As far as I understand, it's when you have a static mapping of internal:external addresses.

But yeah, I've never used it before, you're going to have to look into it to see if it's the right solution. :)

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #8 on: August 27, 2009, 06:26:50 pm »
As far as I understand, [NAT]'s when you have a static mapping of internal:external addresses.

That's what you typically see, but it needn't necessarily be static, or even a dynamic mapping from one address to another to be called NAT. For example, you could set it up so that each succesive TCP connection uses a different external IP address (round-robin, random, etc), and that could still be called NAT. That's a difficult policy to define, though, and it doesn't work well with UDP or other connectionless transport protocols for obvious reasons.

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #9 on: August 27, 2009, 06:33:43 pm »
As far as I understand, [NAT]'s when you have a static mapping of internal:external addresses.

That's what you typically see, but it needn't necessarily be static, or even a dynamic mapping from one address to another to be called NAT. For example, you could set it up so that each succesive TCP connection uses a different external IP address (round-robin, random, etc), and that could still be called NAT. That's a difficult policy to define, though, and it doesn't work well with UDP or other connectionless transport protocols for obvious reasons.
You somehow dropped the word "static" from my post. That was kinda the key -- Static NAT is NAT with static mappings, I think.

Offline Camel

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
    • BNU Bot
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #10 on: August 27, 2009, 06:37:15 pm »
Well, at least I had the sense to misquote you before I called you a liar!

But yeah, you're correct.
« Last Edit: August 27, 2009, 06:40:31 pm by Camel »

<Camel> i said what what
<Blaze> in the butt
<Camel> you want to do it in my butt?
<Blaze> in my butt
<Camel> let's do it in the butt
<Blaze> Okay!

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #11 on: August 27, 2009, 07:05:20 pm »
Once I mentioned "static NAT" to our IT support team they knew what I needed.  Thanks @iago!
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Pinning user to external IP address via Windows Server DHCP
« Reply #12 on: August 27, 2009, 07:10:03 pm »
Once I mentioned "static NAT" to our IT support team they knew what I needed.  Thanks @iago!
I hope it's right ;)