I will give this a try
Robyn Orosz wrote:
> Hi Phenbach,
>
> Try placing a static source NAT rule in front of your masquerade rule 
> that NATs address 192.168.1.13 to the outside-address 12.20.151.13.  
> Then also configure a destination NAT rule that NATs traffic destined 
> to 12.20.151.13 to the inside-address 192.168.1.13.
>
> You are also going to have to assign 192.168.1.13 to your router's 
> interface if the device you are connected to is expecting to get an 
> ARP response for that address.  If the device you are connected to is 
> routing the 12.20.151.13/x block to your Vyatta router, then this 
> should just work whether you have the address assigned to an interface 
> or not.
>
> The rules would look similar to this (depending on what version you're 
> running):
>
>    rule 5 {
>        type: "source"
>        protocols: "all"
>        source {
>            address: 192.168.1.13
>        }
>        destination {
>            network: 0.0.0.0/0
>        }
>        outside-address {
>            address: 12.20.151.13
>        }
>    }
>    rule 10 {
>        type: "masquerade"
>        outbound-interface: "eth0"
>        protocols: "all"
>        source {
>            network: 192.168.1.0/24
>        }
>        destination {
>            network: 0.0.0.0/0
>        }
>    }
>    rule 15 {
>        type: "destination"
>        protocols: "all"
>        source {
>            network: 0.0.0.0/0
>        }
>        destination {
>            address: 12.20.151.13
>        }
>        inside-address {
>            address: 192.168.1.13
>        }
>    }
>
> I hope this helps.
>
> Thank you,
>
> Robyn
>
> FaPhenbach Phenbach wrote:
>> Hello!
>>
>> I have my router setup to allow access to the internet using masquerade.
>>
>> I have a few servers with  static IP addresses.
>> When one of them is my mail server.
>>
>> The masquerade address is 12.20.151.12
>> the server address is 12.20.151.13 with an inside address of 
>> 192.168.1.13
>> how do i set it up so the server uses the 12.20.151.13 address 
>> instead of the 12.20.151.12 address?
>> I assume this would be a nat config.  Are there example of the config 
>> around?
>>
>> Thanks,
>>
>> Phenbach
>> _______________________________________________
>> Vyatta-users mailing list
>> Vyatta-users@mailman.vyatta.com
>> http://mailman.vyatta.com/mailman/listinfo/vyatta-users
>>   

_______________________________________________
Vyatta-users mailing list
Vyatta-users@mailman.vyatta.com
http://mailman.vyatta.com/mailman/listinfo/vyatta-users

Reply via email to