iptables SNAT question

Discussion in 'Installation/Configuration' started by dbo, Dec 22, 2010.

  1. dbo

    dbo New Member

    Currently I have a router running several networks SNAT to a single outbound static address. Each network has it's own interface. What I am trying to do is route each network out the outbound interface, but each have it's own outbound static IP.

    The only NAT rule I'm using now is:

    Code:
    iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth7 -j SNAT --to 1.2.3.4
    
    This is routing networks 10.0.0.0/24, 10.1.0.0/24, 10.2.0.0/24, etc. all out a single static address.

    I would like to have each net have its own static outbound address, but still use a single outbound interface.

    Any help is greatly appreciated.
    Bo
     

Share This Page