Yep its certainly a bit strange.
1) Yes completely different although the /30 is actually 4 useable addresses as 
it's a PPP connection.
2) No I'm fairly certain that PPP can only allocate a single IP Address which 
is the dynamic one. I would need to add the additional addresses to ppp0 once 
its up.
Note this is a routed range so I think it could be assigned to internal devices 
and/or Astlinux local interface with NAT used to determine the address that is 
source NAT'd for external traffic.

Hmm may need to play with the SNAT plugin and let you know.

Regards
Michael Knill

On 22/7/20, 11:31 pm, "Lonnie Abelbeck" <li...@lonnie.abelbeck.com> wrote:


    > On Jul 22, 2020, at 6:31 AM, Michael Knill 
<michael.kn...@ipcsolutions.com.au> wrote:
    > 
    > Hi Group
    >  
    > I have moved to a carrier that only provides a dynamic PPPoE address and 
if you want a static address they add a /30 routed range.
    > Just wondering how I configure this in Astlinux? Do I use EXTIP_ALIAS? 
How do I use this address for outgoing Source NAT?

    Hi Michael,

    For all these years, I have not heard of such a PPPoE configuration.  Are 
you sure you need a static IP :-)

    The EXTIP_ALIAS would not apply since that is for physical interfaces, not 
PPPoE.

    Questions:
    1) Is the /30 route completely different from the assigned dynamic /32 IPv4 
?

    2) Does the PPPoE connection, via the underlying PPP connection, 
automatically add the /30 as a route and associated with the ppp0 interface ?  
OR, is this a static route and address that needs to be manually added to ppp0 
after the PPPoE connectioin is up ?
    --
    ip addr show dev ppp0

    ip route show dev ppp0
    --
    (sanitize any public IPs)


    AstLinux has a firewall Outbound SNAT plugin that will SNAT outbound 
traffic from select internal IPs/CIDRs, this may work for you.

    The added problem here is since PPPoE can destroy and create the ppp0 
interface, any associated static routes and firewall rules will be lost on a 
PPPoE restart, so that needs to be kept in mind.

    Lonnie





    _______________________________________________
    Astlinux-users mailing list
    Astlinux-users@lists.sourceforge.net
    https://lists.sourceforge.net/lists/listinfo/astlinux-users

    Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.


_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to 
pay...@krisk.org.

Reply via email to