Hi,
This is all in theory, so I cannot post a config yet, but I am thinking what would be ideal. My ISP provides two PPPoE sessions. Both have an IPv4. I would use the first one to empower a pretty usual 192.168.1.0/24 network and I would connect my server to this LAN. Let's say it gets 192.168.1.3.
What I want to do is a 1:1 NAT, so the server gets the second PPPoE session and therefore its own public IP, but at the same time it still remains accessible for the LAN on 192.168.1.3. How would one ideally do that? For now I managed to get it to use the IP address of PPPoE session #2 using a route table and a prerouting rule, but that doesn't seem to be ideal.
Thanks