Quantcast
Channel: EdgeRouter topics
Viewing all articles
Browse latest Browse all 20028

Multiple external IPs using PPPoE

$
0
0

Hi, I'm trying to setup multiple external IP addresses using PPPoE through 1 port, eth0. My LAN is on ports eth1 to eth4. My ISP has given me the following 4 IP addresses.

 

79.xx.xxx.84
79.xx.xxx.85
79.xx.xxx.86
79.xx.xxx.87

 

79.xx.xxx.85 is the IP address that's assigned to me automatically when I login using PPPoE on the EdgeRouter X (EdgeMAX) I've tried various things to get it working such as adding the other 3 public IP addresses to eth0 which is the port that goes to my modem (old router in bridge mode). I don't know if it'll help but my ISP is TalkTalk UK and have business broadband. Here is my current configuration, any and all help will be much appreciated!

 

firewall {
    all-ping enable
    broadcast-ping disable
    group {
        port-group TestGroupPorts {
            description ""
            port 80
        }
    }
    ipv6-receive-redirects disable
    ipv6-src-route disable
    ip-src-route disable
    log-martians enable
    name WAN_IN {
        default-action drop
        description "WAN to internal"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    name WAN_LOCAL {
        default-action drop
        description "WAN to router"
        rule 10 {
            action accept
            description "Allow established/related"
            state {
                established enable
                related enable
            }
        }
        rule 20 {
            action drop
            description "Drop invalid state"
            state {
                invalid enable
            }
        }
    }
    options {
        mss-clamp {
            mss 1412
        }
    }
    receive-redirects disable
    send-redirects enable
    source-validation disable
    syn-cookies enable
}
interfaces {
    ethernet eth0 {
        description "Internet (PPPoE)"
        duplex auto
        pppoe 0 {
            default-route auto
            firewall {
                in {
                    name WAN_IN
                }
                local {
                    name WAN_LOCAL
                }
            }
            mtu 1492
            name-server auto
            password REMOVED-ISP-PASSWORD-HERE
            user-id REMOVED-ISP-USERNAME-HERE
        }
        speed auto
    }
    ethernet eth1 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth2 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth3 {
        description Local
        duplex auto
        speed auto
    }
    ethernet eth4 {
        description Local
        duplex auto
        speed auto
    }
    loopback lo {
    }
    switch switch0 {
        address 192.168.1.1/24
        description Local
        mtu 1500
        switch-port {
            interface eth1 {
            }
            interface eth2 {
            }
            interface eth3 {
            }
            interface eth4 {
            }
            vlan-aware disable
        }
    }
}
port-forward {
    auto-firewall enable
    hairpin-nat enable
    lan-interface eth1
    lan-interface eth2
    lan-interface eth3
    lan-interface eth4
    rule 1 {
        description Teamspeak3Voice
        forward-to {
            address 192.168.1.3
            port 9987
        }
        original-port 9987
        protocol udp
    }
    rule 2 {
        description Teamspeak3ServerQuery
        forward-to {
            address 192.168.1.3
            port 10011
        }
        original-port 10011
        protocol tcp
    }
    rule 3 {
        description Teamspeak3FileTransfer
        forward-to {
            address 192.168.1.3
            port 30033
        }
        original-port 30033
        protocol tcp
    }
    rule 4 {
        description RemoteDesktopProt
        forward-to {
            address 192.168.1.4
            port 3389
        }
        original-port 3389
        protocol tcp_udp
    }
    wan-interface pppoe0
}
protocols {
    static {
        interface-route 79.xx.xxx.84/32 {
            next-hop-interface pppoe0 {
            }
        }
    }
}
service {
    dhcp-server {
        disabled false
        hostfile-update disable
        shared-network-name LAN {
            authoritative disable
            subnet 192.168.1.0/24 {
                default-router 192.168.1.1
                dns-server 192.168.1.1
                lease 86400
                start 192.168.1.201 {
                    stop 192.168.1.254
                }
            }
        }
        use-dnsmasq disable
    }
    dns {
        forwarding {
            cache-size 150
            listen-on switch0
        }
    }
    gui {
        http-port 80
        https-port 443
        older-ciphers enable
    }
    nat {
        rule 5001 {
            description "masquerade for WAN"
            outbound-interface pppoe0
            type masquerade
        }
    }
    ssh {
        port 22
        protocol-version v2
    }
}
system {
    host-name ubnt
    login {
        user ubnt {
            authentication {
                encrypted-password REMOVED-THIS-ENCRYPTION-KEY
            }
            level admin
        }
    }
    ntp {
        server 0.ubnt.pool.ntp.org {
        }
        server 1.ubnt.pool.ntp.org {
        }
        server 2.ubnt.pool.ntp.org {
        }
        server 3.ubnt.pool.ntp.org {
        }
    }
    syslog {
        global {
            facility all {
                level notice
            }
            facility protocols {
                level debug
            }
        }
    }
    time-zone UTC
}


/* Warning: Do not remove the following line. */
/* === vyatta-config-version: "config-management@1:conntrack@1:cron@1:dhcp-relay@1:dhcp-server@4:firewall@5:ipsec@5:nat@3:qos@1:quagga@2:system@4:ubnt-pptp@1:ubnt-util@1:vrrp@1:webgui@1:webproxy@1:zone-policy@1" === */
/* Release version: v1.9.0.4901118.160804.1131 */

 

 


Viewing all articles
Browse latest Browse all 20028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>