NAT to pseudo-interface


#1

Hi everyone,

I’ve just tried ton configure NAT (SNAT and DNAT) on a Pseudo-Interface, but it seems that nothing is working at all. So I wanted to know if anyone tried this, and make it work ? (I was able to make it work on a “normal” ethernet interface)

For the backgroup i’m doing this to be able to have different public IPs for my different internal serverz. And i’m not able to do it via vif interfaces because my ISP is registering the IP via the MAC addresses he learns.

So here’s my configuration for the pseudo-interface :

[quote]pseudo-ethernet peth0 {
address 5.X.X.X/32
description WEBSERVER
link eth0
mac 00:00:00:00:00:00
mode private
}
[/quote]

And here’s my NAT configuration :

Thanks for the futur replies :slight_smile:


#2

I think you need a working MAC address on your pseudo-ethernet and not mac 00:00:00:00:00:00 as a startingpoint.


#3

Of course my real mac is not 00:00:00:00:00:00. It’s just an example, like the IP address of the Peth0 ! :slight_smile: