hello guys, i am using pppoe to provide internet for 150+ clients in compound. i have 10 mb DSL link..
now as customers grows they complain abt yahoo messenger , skype voice chat.. am planing to add one more dedicated bandwidth 512 kbps for yahoo messenger… here is my presenet configuration…
# jan/01/1970 03:05:50 by RouterOS 3.24
# software id =
#
/interface ethernet
set 0 arp=enabled auto-negotiation=yes comment=Internet2 disabled=no \
full-duplex=yes mac-address=00:0C:42:3B:95:51 mtu=1500 name=ether1 speed=\
100Mbps
set 1 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited comment=\
"---- Internet-1----" disabled=no full-duplex=yes mac-address=\
00:0C:42:3B:95:52 master-port=none mtu=1500 name=ether2 speed=100Mbps
set 2 arp=enabled auto-negotiation=yes bandwidth=unlimited/unlimited comment="\
------------------------------------------------ Compound Internet-Use\
rs --------------------------------------------" disabled=no \
full-duplex=yes mac-address=00:0C:42:3B:95:53 master-port=none mtu=1500 \
name=ether3 speed=100Mbps
/ip pool
add name=pppoe-pool2 ranges=10.10.2.10-10.10.2.254
add name=pppoe-pool next-pool=pppoe-pool2 ranges=10.10.1.10-10.10.1.254
/ppp profile
set default change-tcp-mss=yes comment="" name=default only-one=default \
use-compression=default use-encryption=default use-vj-compression=default
add change-tcp-mss=no comment="" local-address=10.10.1.1 name=pppoe-profile \
only-one=yes rate-limit=64000/512000 remote-address=pppoe-pool \
use-compression=default use-encryption=default use-vj-compression=no
add change-tcp-mss=default comment="" local-address=10.10.1.1 name=pppoe-res \
only-one=default rate-limit=64000/64000 remote-address=pppoe-pool \
use-compression=default use-encryption=default use-vj-compression=default
/queue type
set default kind=pfifo name=default pfifo-limit=50
set ethernet-default kind=pfifo name=ethernet-default pfifo-limit=50
set wireless-default kind=sfq name=wireless-default sfq-allot=1514 \
sfq-perturb=5
set synchronous-default kind=red name=synchronous-default red-avg-packet=1000 \
red-burst=20 red-limit=60 red-max-threshold=50 red-min-threshold=10
set hotspot-default kind=sfq name=hotspot-default sfq-allot=1514 sfq-perturb=\
5
set default-small kind=pfifo name=default-small pfifo-limit=10
/queue simple
add burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s comment="" \
direction=both disabled=no dst-address=0.0.0.0/0 interface=ether2 \
limit-at=8k/8k max-limit=64k/64k name=P2P p2p=all-p2p parent=none \
priority=8 queue=default-small/default-small target-addresses=\
10.10.1.0/24 total-max-limit=128 total-queue=default
/routing bgp instance
set default as=65530 client-to-client-reflection=yes comment="" disabled=no \
ignore-as-path-len=no name=default out-filter="" redistribute-connected=\
no redistribute-ospf=no redistribute-other-bgp=no redistribute-rip=no \
redistribute-static=no router-id=0.0.0.0
/routing ospf area
add area-id=0.0.0.0 authentication=none disabled=no name=backbone type=\
default
/system logging action
set memory memory-lines=500 memory-stop-on-full=no name=memory target=memory
set disk disk-file-count=2 disk-file-name=log disk-lines-per-file=500 \
disk-stop-on-full=no name=disk target=disk
set echo name=echo remember=yes target=echo
set remote bsd-syslog=no name=remote remote=0.0.0.0:514 src-address=0.0.0.0 \
syslog-facility=daemon syslog-severity=auto target=remote
/system routerboard settings
set baud-rate=115200 boot-delay=2s boot-device=nand-if-fail-then-ethernet \
boot-protocol=bootp cpu-frequency=680MHz enable-jumper-reset=yes \
enter-setup-on=any-key force-backup-booter=no
set baud-rate=115200 boot-delay=2s boot-device=nand-if-fail-then-ethernet \
boot-protocol=bootp cpu-frequency=680MHz enable-jumper-reset=yes \
enter-setup-on=any-key force-backup-booter=no
/user group
add comment="" name=read policy="local,telnet,ssh,reboot,read,test,winbox,pass\
word,web,sniff,!ftp,!write,!policy"
add comment="" name=write policy="local,telnet,ssh,reboot,read,write,test,winb\
ox,password,web,sniff,!ftp,!policy"
add comment="" name=full policy="local,telnet,ssh,ftp,reboot,read,write,policy\
,test,winbox,password,web,sniff"
/user
add address=0.0.0.0/0 comment="system default user" disabled=no group=full \
name=admin
add address=0.0.0.0/0 comment="" disabled=no group=full name=hadi
/interface bridge settings
set use-ip-firewall=no use-ip-firewall-for-pppoe=no use-ip-firewall-for-vlan=\
no
/interface ethernet mirror
set mirror-port=none source-port=none
/interface l2tp-server server
set authentication=pap,chap,mschap1,mschap2 default-profile=\
default-encryption enabled=yes max-mru=1460 max-mtu=1460 mrru=disabled
/interface ovpn-server server
set auth=sha1,md5 certificate=none cipher=blowfish128,aes128 default-profile=\
default enabled=no keepalive-timeout=60 mac-address=FE:6F:98:26:35:02 \
max-mtu=1500 mode=ip netmask=24 port=1194 require-client-certificate=no
/interface pppoe-server server
add authentication=pap,chap,mschap1,mschap2 default-profile=pppoe-profile \
disabled=no interface=ether3 keepalive-timeout=10 max-mru=1480 max-mtu=\
1480 max-sessions=0 mrru=disabled one-session-per-host=yes service-name=\
Internet-Compound
/interface pptp-server server
set authentication=mschap1,mschap2 default-profile=default-encryption \
enabled=yes keepalive-timeout=30 max-mru=1460 max-mtu=1460 mrru=disabled
/ip accounting
set account-local-traffic=no enabled=no threshold=256
/ip accounting web-access
set accessible-via-web=no address=0.0.0.0/0
/ip address
add address=192.168.1.10/24 broadcast=192.168.1.255 comment="" disabled=no \
interface=ether2 network=192.168.1.0
add address=63.117.24.1/27 broadcast=63.117.24.31 comment="" disabled=no \
interface=ether3 network=63.117.24.0
/ip dns
set allow-remote-requests=no cache-max-ttl=1w cache-size=8048KiB \
max-udp-packet-size=512 primary-dns=84.235.7.55 secondary-dns=84.235.6.55
/ip firewall address-list
add address=192.168.0.0/16 comment="" disabled=no list=BOGONS
add address=10.0.0.0/8 comment="" disabled=no list=BOGONS
add address=172.16.0.0/12 comment="" disabled=no list=BOGONS
add address=169.254.0.0/16 comment="" disabled=no list=BOGONS
add address=127.0.0.0/8 comment="" disabled=no list=BOGONS
add address=224.0.0.0/3 comment="multicast - 224.0.0.0/3" disabled=no list=\
BOGONS
add address=223.0.0.0/8 comment="" disabled=no list=BOGONS
add address=198.18.0.0/15 comment="" disabled=no list=BOGONS
add address=192.0.2.0/24 comment="" disabled=no list=BOGONS
add address=185.0.0.0/8 comment="" disabled=no list=BOGONS
add address=180.0.0.0/6 comment="" disabled=no list=BOGONS
add address=179.0.0.0/8 comment="" disabled=no list=BOGONS
add address=176.0.0.0/7 comment="" disabled=no list=BOGONS
add address=175.0.0.0/8 comment="" disabled=no list=BOGONS
add address=104.0.0.0/6 comment="" disabled=no list=BOGONS
add address=100.0.0.0/6 comment="" disabled=no list=BOGONS
add address=49.0.0.0/8 comment="" disabled=no list=BOGONS
add address=46.0.0.0/8 comment="" disabled=no list=BOGONS
add address=42.0.0.0/8 comment="" disabled=no list=BOGONS
add address=39.0.0.0/8 comment="" disabled=no list=BOGONS
add address=36.0.0.0/7 comment="" disabled=no list=BOGONS
add address=31.0.0.0/8 comment="" disabled=no list=BOGONS
add address=27.0.0.0/8 comment="" disabled=no list=BOGONS
add address=23.0.0.0/8 comment="" disabled=no list=BOGONS
add address=14.0.0.0/8 comment="" disabled=no list=BOGONS
add address=5.0.0.0/8 comment="" disabled=no list=BOGONS
add address=2.0.0.0/8 comment="" disabled=no list=BOGONS
add address=0.0.0.0/7 comment="" disabled=no list=BOGONS
add address=128.0.0.0/16 comment="" disabled=no list=BOGONS
/ip firewall connection tracking
set enabled=yes generic-timeout=10m icmp-timeout=10s tcp-close-timeout=10s \
tcp-close-wait-timeout=10s tcp-established-timeout=1d \
tcp-fin-wait-timeout=10s tcp-last-ack-timeout=10s \
tcp-syn-received-timeout=5s tcp-syn-sent-timeout=5s tcp-syncookie=no \
tcp-time-wait-timeout=10s udp-stream-timeout=3m udp-timeout=10s
/ip firewall filter
add action=accept chain=forward comment="allow established connections" \
connection-state=established disabled=no
add action=accept chain=forward comment="allow related connections" \
connection-state=related disabled=no
add action=drop chain=forward comment="drop invaled connections" \
connection-state=invalid connection-type="" disabled=no
add action=accept chain=forward comment="allow ping" disabled=no protocol=\
icmp
add action=accept chain=forward comment="allow udp" disabled=no protocol=udp
add action=drop chain=forward comment="" disabled=no protocol=udp \
src-address=192.168.0.1 src-port=67
add action=add-src-to-address-list address-list=spammer address-list-timeout=\
0s chain=forward comment="Detect and add-list SMTP virus or spammers" \
connection-limit=30,32 disabled=no dst-port=25 limit=50,5 protocol=tcp
add action=drop chain=forward comment="" disabled=no src-address=127.0.0.0/8
add action=drop chain=forward comment="" disabled=no dst-address=127.0.0.0/8
add action=drop chain=forward comment="" disabled=no src-address=224.0.0.0/3
add action=drop chain=forward comment="" disabled=no dst-address=224.0.0.0/3
add action=drop chain=forward comment="" disabled=no src-address=0.0.0.0/8
add action=drop chain=forward comment="" disabled=no dst-address=0.0.0.0/8
add action=drop chain=forward comment="BLOCK SPAMMERS OR INFECTED USERS" \
disabled=no dst-port=25 protocol=tcp src-address-list=spammer
add action=drop chain=tcp comment="deny DHCP" disabled=no dst-port=67-68 \
protocol=tcp
add action=drop chain=tcp comment="deny RPC portmapper" disabled=no dst-port=\
111 protocol=tcp
add action=drop chain=tcp comment="deny RPC portmapper" disabled=no dst-port=\
135 protocol=tcp
add action=drop chain=tcp comment="deny NBT" disabled=no dst-port=137-139 \
protocol=tcp
add action=drop chain=tcp comment="deny cifs" disabled=no dst-port=445 \
protocol=tcp
add action=drop chain=tcp comment="deny NFS" disabled=no dst-port=2049 \
protocol=tcp
add action=drop chain=tcp comment="deny NetBus" disabled=no dst-port=\
12345-12346 protocol=tcp
add action=drop chain=tcp comment="deny NetBus" disabled=no dst-port=20034 \
protocol=tcp
add action=drop chain=tcp comment="deny BackOriffice" disabled=no dst-port=\
3133 protocol=tcp
add action=drop chain=udp comment="deny TFTP" disabled=no dst-port=69 \
protocol=udp
add action=drop chain=udp comment="deny PRC portmapper" disabled=no dst-port=\
111 protocol=udp
add action=drop chain=udp comment="deny PRC portmapper" disabled=no dst-port=\
135 protocol=udp
add action=drop chain=udp comment="deny NBT" disabled=no dst-port=137-139 \
protocol=udp
add action=drop chain=udp comment="deny NFS" disabled=no dst-port=2049 \
protocol=udp
add action=drop chain=udp comment="deny BackOriffice" disabled=no dst-port=\
3133 protocol=udp
add action=jump chain=forward comment="jump to the virus chain" disabled=no \
jump-target=virus
add action=drop chain=virus comment="Drop Blaster Worm" disabled=no dst-port=\
445 protocol=tcp
add action=drop chain=virus comment="Drop Blaster Worm" disabled=no dst-port=\
135-139 protocol=tcp
add action=drop chain=virus comment="Drop Messenger Worm" disabled=no \
dst-port=135-139 protocol=udp
add action=drop chain=virus comment="Drop Blaster Worm" disabled=no dst-port=\
445 protocol=udp
add action=drop chain=virus comment="Drop Virus" disabled=no dst-port=593 \
protocol=tcp
add action=drop chain=virus comment="Drop Virus" disabled=no dst-port=\
1024-1030 protocol=tcp
add action=drop chain=virus comment="Drop MyDoom" disabled=no dst-port=1080 \
protocol=tcp
add action=drop chain=virus comment="Drop Virus" disabled=no dst-port=1214 \
protocol=tcp
add action=drop chain=virus comment="ndm requester" disabled=no dst-port=1363 \
protocol=tcp
add action=drop chain=virus comment="ndm server" disabled=no dst-port=1364 \
protocol=tcp
add action=drop chain=virus comment="screen cast" disabled=no dst-port=1368 \
protocol=tcp
add action=drop chain=virus comment=hromgrafx disabled=no dst-port=1373 \
protocol=tcp
add action=drop chain=virus comment=cichlid disabled=no dst-port=1377 \
protocol=tcp
add action=drop chain=virus comment=Worm disabled=no dst-port=1433-1434 \
protocol=tcp
add action=drop chain=virus comment="Bagle Virus" disabled=no dst-port=2745 \
protocol=tcp
add action=drop chain=virus comment="Drop Dumaru.Y" disabled=no dst-port=2283 \
protocol=tcp
add action=drop chain=virus comment="Drop Beagle" disabled=no dst-port=2535 \
protocol=tcp
add action=drop chain=virus comment="Drop Beagle.C-K" disabled=no dst-port=\
2745 protocol=tcp
add action=drop chain=virus comment="Drop MyDoom" disabled=no dst-port=\
3127-3128 protocol=tcp
add action=drop chain=virus comment="Drop Backdoor OptixPro" disabled=no \
dst-port=3410 protocol=tcp
add action=drop chain=virus comment=Worm disabled=no dst-port=4444 protocol=\
tcp
add action=drop chain=virus comment=Worm disabled=no dst-port=4444 protocol=\
udp
add action=drop chain=virus comment="Drop Sasser" disabled=no dst-port=5554 \
protocol=tcp
add action=drop chain=virus comment="Drop Beagle.B" disabled=no dst-port=8866 \
protocol=tcp
add action=drop chain=virus comment="Drop Dumaru.Y" disabled=yes dst-port=\
10000 protocol=tcp
add action=drop chain=virus comment="Drop MyDoom.B" disabled=no dst-port=\
10080 protocol=tcp
add action=drop chain=virus comment="Drop NetBus" disabled=no dst-port=12345 \
protocol=tcp
add action=drop chain=virus comment="Drop Kuang2" disabled=no dst-port=17300 \
protocol=tcp
add action=drop chain=virus comment="Drop SubSeven" disabled=no dst-port=\
27374 protocol=tcp
add action=drop chain=virus comment="Drop PhatBot, Agobot, Gaobot" disabled=\
no dst-port=65506 protocol=tcp
add action=drop chain=virus comment="MS SQL WORM" disabled=no dst-port=1434 \
protocol=udp
add action=drop chain=virus comment="Drop Client Virus" disabled=no protocol=\
udp src-port=1877
add action=drop chain=virus comment="Drop Dabber.A-B" disabled=no dst-port=\
9898 protocol=tcp
add action=drop chain=virus comment="" disabled=no dst-address=192.168.1.254 \
dst-port=80 protocol=tcp
add action=drop chain=virus comment="" disabled=no dst-address=192.168.1.99 \
dst-port=80 protocol=tcp
add action=drop chain=virus comment="" disabled=no dst-address=192.168.1.254 \
dst-port=80 p2p=fasttrack protocol=tcp
/ip firewall nat
add action=masquerade chain=srcnat comment="IP Nat" disabled=no \
out-interface=ether2
add action=dst-nat chain=dstnat comment="Redirected Traffic to Squid PPPoE" \
disabled=yes dst-port=80 protocol=tcp src-address=10.10.1.0/24 \
to-addresses=63.117.24.0 to-ports=8080
add action=dst-nat chain=dstnat comment=\
"Radius Manager Access from Public Access" disabled=no dst-address=\
192.168.1.10 dst-port=80 protocol=tcp to-addresses=63.117.24.2 to-ports=\
80
add action=dst-nat chain=dstnat comment="SSH Access from Public Network" \
disabled=no dst-address=192.168.1.10 dst-port=2222 protocol=tcp \
to-addresses=63.117.24.2 to-ports=2266
add action=dst-nat chain=dstnat comment=\
"Telnet Acess from Public Network to Cisco LRE" disabled=no dst-address=\
192.168.1.10 dst-port=23 protocol=tcp to-addresses=63.117.24.2 to-ports=\
23
add action=dst-nat chain=dstnat comment="Webmin Access to Proxy server" \
disabled=no dst-address=192.168.1.10 dst-port=10000 protocol=tcp \
to-addresses=63.117.24.2 to-ports=10000
add action=dst-nat chain=dstnat comment="" disabled=yes dst-address=\
192.168.1.254 dst-port=80 protocol=tcp to-addresses=63.117.24.2 to-ports=\
80
add action=dst-nat chain=dstnat comment="" disabled=yes dst-address=\
192.168.1.99 dst-port=80 protocol=tcp to-addresses=63.117.24.2 to-ports=\
80
add action=dst-nat chain=dstnat comment="" disabled=yes dst-address=\
192.168.1.10 dst-port=80 protocol=tcp to-addresses=192.168.1.10 to-ports=\
8291
/ip firewall service-port
set ftp disabled=yes ports=21
set tftp disabled=yes ports=69
set irc disabled=no ports=6667
set h323 disabled=yes
set sip disabled=yes ports=5060,5061
set pptp disabled=yes
/ip neighbor discovery
set ether1 discover=yes
set ether2 discover=yes
set ether3 discover=yes
/ip proxy
set always-from-cache=no cache-administrator=webmaster cache-hit-dscp=4 \
cache-on-disk=no enabled=no max-cache-size=none max-client-connections=\
600 max-fresh-time=3d max-server-connections=600 parent-proxy=0.0.0.0 \
parent-proxy-port=0 port=8080 serialize-connections=no src-address=\
0.0.0.0
/ip route
add comment="" disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.1.254 scope=30 target-scope=10
add comment="" disabled=yes distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.1.99 scope=255 target-scope=10
/ip service
set telnet address=0.0.0.0/0 disabled=yes port=23
set ftp address=0.0.0.0/0 disabled=yes port=21
set www address=0.0.0.0/0 disabled=yes port=80
set ssh address=0.0.0.0/0 disabled=no port=2266
set www-ssl address=0.0.0.0/0 certificate=none disabled=yes port=443
set api address=0.0.0.0/0 disabled=yes port=8728
set winbox address=0.0.0.0/0 disabled=no port=8291
/ip socks
set connection-idle-timeout=2m enabled=no max-connections=200 port=1080
/ip traffic-flow
set active-flow-timeout=30m cache-entries=4k enabled=no \
inactive-flow-timeout=15s interfaces=all
/ip upnp
set allow-disable-external-interface=yes enabled=no show-dummy-rule=yes
/ppp aaa
set accounting=yes interim-update=1m use-radius=yes
/queue interface
set ether1 queue=ethernet-default
set ether2 queue=ethernet-default
set ether3 queue=ethernet-default
/radius
add accounting-backup=no accounting-port=1813 address=63.117.24.2 \
authentication-port=1812 called-id="" comment="" disabled=no domain="" \
realm="" secret=testing123 service=ppp,login,hotspot,wireless timeout=2s
/radius incoming
set accept=yes port=1700
/routing mme
set bidirectional-timeout=2 gateway-class=none gateway-keepalive=1m \
gateway-selection=no-gateway origination-interval=5s preferred-gateway=\
0.0.0.0 timeout=1m ttl=50
/routing ospf
set distribute-default=never metric-bgp=20 metric-connected=20 \
metric-default=1 metric-rip=20 metric-static=20 mpls-te-area=unspecified \
mpls-te-router-id=unspecified redistribute-bgp=no redistribute-connected=\
no redistribute-rip=no redistribute-static=no router-id=0.0.0.0
/routing rip
set distribute-default=never garbage-timer=2m metric-bgp=1 metric-connected=1 \
metric-default=1 metric-ospf=1 metric-static=1 redistribute-bgp=no \
redistribute-connected=no redistribute-ospf=no redistribute-static=no \
timeout-timer=3m update-timer=30s
/store
add comment="" disabled=no disk=system name=web-proxy1 type=web-proxy
/system clock
set time-zone-name=Asia/Riyadh
/system clock manual
set dst-delta=+00:00 dst-end="jan/01/1970 00:00:00" dst-start=\
"jan/01/1970 00:00:00" time-zone=+03:00
/system console
add disabled=no port=serial0 term=vt102
/system health
set fan-mode=auto use-fan=main
/system identity
set name=" Management Console"
/system logging
add action=memory disabled=no prefix="" topics=info
add action=memory disabled=no prefix="" topics=error
add action=memory disabled=no prefix="" topics=warning
add action=echo disabled=no prefix="" topics=critical
add action=memory disabled=yes prefix="" topics=!pppoe
add action=memory disabled=no prefix="" topics=manager
add action=memory disabled=yes prefix="" topics=pppoe
add action=memory disabled=no prefix="" topics=firewall
add action=memory disabled=no prefix="" topics=pppoe,ppp,error
add action=memory disabled=yes prefix="" topics=ppp
/system note
set note="" show-at-login=yes
/system ntp client
set enabled=no mode=broadcast primary-ntp=0.0.0.0 secondary-ntp=0.0.0.0
/system upgrade mirror
set check-interval=1d enabled=no primary-server=0.0.0.0 secondary-server=\
0.0.0.0 user=""
/system watchdog
set auto-send-supout=no automatic-supout=yes no-ping-delay=5m watch-address=\
none watchdog-timer=yes
/tool bandwidth-server
set allocate-udp-ports-from=2000 authenticate=yes enabled=yes max-sessions=10
/tool e-mail
set from=<> password="" server=0.0.0.0:25 username=""
/tool graphing
set store-every=5min
/tool graphing interface
add allow-address=0.0.0.0/0 disabled=no interface=all store-on-disk=yes
/tool mac-server
add disabled=no interface=all
/tool mac-server ping
set enabled=yes
/tool sms
set allowed-number="" keep-max-sms=0 reader-running=no secret=""
/tool sniffer
set file-limit=10 file-name="" filter-address1=0.0.0.0/0:0-65535 \
filter-address2=0.0.0.0/0:0-65535 filter-protocol=ip-only filter-stream=\
yes interface=all memory-limit=10 only-headers=no streaming-enabled=no \
streaming-server=0.0.0.0
/user aaa
set accounting=yes default-group=read interim-update=0s use-radius=no
now my question is
- can i route yahoo messenger,skype, voip traffic to my dedicated 512 line and
all my borwsing traffic, P2P,SSL, rest to my 10 MB dsl line ?..
i did search n got ths mangle rule.
/ip firewall mangle
add action=mark-routing chain=prerouting comment=“Y! routing mark” disabled=
no dst-port=5050 new-routing-mark=Yahoo passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment=“MSN routing mark” disabled=
no dst-port=1863 new-routing-mark=MSN passthrough=no protocol=tcp
/ip route
add comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=
192.168.0.1 routing-mark=MSN scope=30 target-scope=10
add comment=“” disabled=no distance=1 dst-address=0.0.0.0/0 gateway=
192.168.0.1 routing-mark=Yahoo scope=30 target-scope=10
is this working?? any one guide me steps to achieve my task… i need ur help, u can pm (ahfawad@hotmail.com) me if u have working configuration…
(i need to make sure my scenario works before applying for dedicated link as it is very costly , 3 months prepay and huge deposit)…
Thanx in advance…