Find the answer to your Linux question:
Results 1 to 5 of 5
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Dynamic NAT witout overloading


    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.

    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
    Hmm, any reason why you don't use 1to1 NAT(static nat)?
    I expect that this is what you really want.

  3. #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. $spacer_open
  5. #4
    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?

  6. #5
    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