Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- interfaces {
- bridge br0 {
- aging 300
- bridged-conntrack disable
- description "br0 - Phone"
- hello-time 2
- max-age 20
- priority 32768
- promiscuous disable
- stp false
- }
- ethernet eth0 {
- address 192.168.1.1/24
- description "LAN - eth0"
- duplex auto
- speed auto
- }
- ethernet eth1 {
- description "NTU - eth1"
- duplex auto
- speed auto
- vif 4 {
- address dhcp
- description "IPTV - eth1.4"
- dhcp-options {
- client-option "send vendor-class-identifier "IPTV_RG";"
- client-option "request subnet-mask, routers, rfc3442-classless-static-routes;"
- default-route no-update
- default-route-distance 254
- name-server update
- }
- firewall {
- in {
- }
- }
- }
- vif 6 {
- description "Internet - eth1.6"
- mtu 1500
- pppoe 0 {
- default-route auto
- mtu 1492
- name-server auto
- password ppp
- user-id 11-11-11-11-11-11@internet
- }
- }
- vif 7 {
- bridge-group {
- bridge br0
- }
- description "Phone - eth1.7"
- mtu 1500
- }
- }
- ethernet eth2 {
- description "Phone - eth2"
- duplex auto
- speed auto
- vif 7 {
- bridge-group {
- bridge br0
- }
- description "Phone - eth2.7"
- mtu 1500
- }
- }
- }
- protocols {
- igmp-proxy {
- interface eth0 {
- role downstream
- threshold 1
- }
- interface eth1.4 {
- alt-subnet 0.0.0.0/0
- role upstream
- threshold 1
- }
- }
- static {
- route 213.75.112.0/21 {
- next-hop 10.164.0.1 {
- }
- }
- }
- }
- service {
- dhcp-server {
- disabled false
- global-parameters "option vendor-class-identifier code 60 = string;"
- global-parameters "option broadcast-address code 28 = ip-address;"
- hostfile-update disable
- shared-network-name LAN1 {
- authoritative enable
- subnet 192.168.1.0/24 {
- default-router 192.168.1.1
- dns-server 8.8.8.8
- lease 86400
- start 192.168.1.10 {
- stop 192.168.1.100
- }
- subnet-parameters "option vendor-class-identifier "IPTV_RG";"
- subnet-parameters "option broadcast-address 192.168.1.255;"
- }
- }
- }
- nat {
- rule 5001 {
- description IPTV1
- destination {
- address 10.164.0.0/18
- }
- log disable
- outbound-interface eth1.4
- protocol all
- type masquerade
- }
- rule 5002 {
- description IPTV2
- destination {
- address 213.75.112.0/21
- }
- log disable
- outbound-interface eth1.4
- protocol all
- type masquerade
- }
- rule 5003 {
- outbound-interface pppoe0
- type masquerade
- }
- }
- }
- system {
- offload {
- ipv4 {
- forwarding enable
- gre enable
- pppoe enable
- vlan enable
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment