Quantcast
Channel: All EdgeRouter posts
Viewing all articles
Browse latest Browse all 60861

Re: Edgerouter lite using PPPOE will not use WAN IP for Proxy

$
0
0

I found the issue. The perl modules that "check" system IP's require an IP with a CIDR notation in order to be considered a "system address". PPPOE interfaces in the edgerouter will not produce a string  that meets these requirements and therefore it is not considered a valid address.

 

sub get_ipaddr_intf_hash {
  my %config_ipaddrs = ();
  my @lines = `ip addr show | grep 'inet '`;
  chomp @lines;
  foreach my $line (@lines) {
    if ($line =~ /inet\s+([0-9.]+)\/.*\s([\w.]+)$/) {
        $config_ipaddrs{$1} = $2;
    }
  }
  return \%config_ipaddrs;

 

I modified the code to accept the PPPOE line also and the config will recognize the WAN address as a system IP and the proxy works. The modification is below

 

if ($line =~ /inet\s+([0-9.]+).*\s([\w.]+)$/) {

 

Thank you for your assistance.


Viewing all articles
Browse latest Browse all 60861

Trending Articles