Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I'm looking for solution to implement dynamic NAT without overload. Maybe someone could help me? I try to force iptables to allow hosts to use only unique public IPs. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2014
    Posts
    3

    Dynamic NAT witout overloading


    Hi,

    I'm looking for solution to implement dynamic NAT without overload. Maybe someone could help me?

    I try to force iptables to allow hosts to use only unique public IPs.

    Code:
    iptables -t nat -A POSTROUTING -o $EXT_IF -s $DMZ_NET -j SNAT --to x.y.z.8-x.y.z.9
    But with only 2 hosts online, both used x.y.z.8 with PAT.

  2. #2
    Just Joined!
    Join Date
    Nov 2013
    Posts
    18
    Hmm, any reason why you don't use 1to1 NAT(static nat)?
    I expect that this is what you really want.

  3. #3
    Just Joined!
    Join Date
    Aug 2014
    Posts
    3
    Unfortunatly I have ~700 hosts and only ~500 public IPs.
    I can always use for example 1pubto2priv, but this would require a lot of changes in DHCP server.

  4. #4
    Just Joined!
    Join Date
    Nov 2013
    Posts
    18
    Then i don't understand what you want to accomplish.

    Do you want the first 499 hosts to use a public IP, and the 201 remaining sharing the last public?

  5. #5
    Just Joined!
    Join Date
    Aug 2014
    Posts
    3
    I asume that not all host are online at the same time.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •