Page 1 of 1

BGP+NAT doesn't work

Posted: Wed Sep 04, 2019 11:44 am
by Sabrewulf

I have 2 uplinks ("ext1", "ext2" interfaces) with 2 full view BGP sessions, my own PI network ("pi" interface, network Announcing and routing between "pi" and internet works fine.

I have another interface ("int") where located network I would like to NAT hosts from this network. How I can do this?

I tried to add new IP It successfully pings from internet. Then I added rule:
0 chain=srcnat action=src-nat to-addresses= src-address= log=no log-prefix=""
but nothing works, and packet counter still zero.