Archive
DDWRT speed limit
Save Script as Administrator -> Commands -> Save Firewall
-
# Firewall Script Start<br />
-
# Wait 10 seconds for Router startup<br />
-
sleep 10<br />
-
# br2 Web Access Only<br />
-
iptables -I FORWARD -i br2 -m state --state NEW -j ACCEPT<br />
-
iptables -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu<br />
-
iptables -I FORWARD -i br2 -d `nvram get lan_ipaddr`/`nvram get lan_netmask` -m state --state NEW -j DROP<br />
-
iptables -t nat -I POSTROUTING -o br0 -j SNAT --to `nvram get lan_ipaddr`<br />
-
iptables -I INPUT -i br2 -m state --state NEW -j DROP<br />
-
iptables -I INPUT -i br2 -p udp --dport 67 -j ACCEPT<br />
-
iptables -I INPUT -i br2 -p udp --dport 53 -j ACCEPT<br />
-
iptables -I INPUT -i br2 -p tcp --dport 53 -j ACCEPT<br />
-
# Share Printer with br2<br />
-
iptables -I FORWARD -d 192.168.1.30 -j ACCEPT<br />
-
# Limit br2 download speed<br />
-
tc qdisc del dev br2 root<br />
-
tc qdisc add dev br2 root handle 1: htb<br />
-
tc class add dev br2 parent 1:1 classid 1:10 htb rate 1024kbit ceil 1024kbit prio 4<br />
-
tc filter add dev br2 parent 1:0 prio 4 protocol ip handle 10 fw flowid 1:10<br />
-
iptables -t mangle -A POSTROUTING -d 192.168.10.0/24 -j MARK --set-mark 10<br />
-
# Limit br2 upload speed<br />
-
insmod imq<br />
-
insmod ipt_IMQ<br />
-
ip link set imq0 up<br />
-
tc qdisc del dev imq0 root<br />
-
tc qdisc add dev imq0 root handle 1: htb<br />
-
tc class add dev imq0 parent 1:1 classid 1:10 htb rate 100kbit ceil 100kbit prio 4<br />
-
tc filter add dev imq0 parent 1:0 prio 4 protocol ip handle 10 fw flowid 1:10<br />
-
iptables -t mangle -A PREROUTING -s 192.168.10.0/24 -j MARK --set-mark 10<br />
-
iptables -t mangle -A PREROUTING -j IMQ --todev 0<br />
-
# Firewall Script Ends
Change br2 with your brX, also change 192.168.10.0/24 to your needs
Note about “prio”, I’ve set it the lowest=4. Prio values are 0-4; 0=Highest, 1=High, 2=Normal, 3=Low & 4=Lowest
9 – How to make a USB bootable BACKTRACK 4/5 (linux) drive – RMPrepUSB
title BackTrack 5 (1024x768) Persistent\nType startx to run GUI once booted PERSISTENT
kernel /casper/vmlinuz file=/cdrom/preseed/custom.seed boot=casper text splash vga=791-- persistent
initrd /casper/initrd.gz
via 9 - How to make a USB bootable BACKTRACK 4/5 (linux) drive - RMPrepUSB.
Installing MySQL And phpMyAdmin On FreeNAS | HowtoForge – Linux Howtos and Tutorials
Installing MySQL And phpMyAdmin On FreeNAS | HowtoForge - Linux Howtos and Tutorials.
!!!!!
mysql_install_db --user=mysql --ldata=/new-data-location
Linux connecto to VPN
pppd noauth refuse-eap require-mppe name umbit password umbitgeslo usepeerdns require-chapms-v2 pty "pptp mail.nektar.eu --nolaunchpppd"
http://www.question-defense.com/2009/08/13/configure-wrt54gs-running-dd-wrt-to-connect-to-office-vpn-connection
http://open-wrt.ru/forum/viewtopic.php?pid=2108
Type of VPN: PPTP
CHAP
MS-CHAP v2
10.0.1.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
193.189.184.134 192.168.2.1 255.255.255.255 UGH 0 0 0 eth0
pppd noauth nobsdcomp nodeflate require-mppe-128 name umbit password umbitgeslo pty "pptp mail.nektar.eu --nolaunchpppd"
FreeNAS forum • View topic – mount other NAS share using SMBFS
mount_smbfs //toto@NAS-BACKUP/Volume_1-1 /mnt/BACKUP_NAS/
via FreeNAS forum • View topic - mount other NAS share using SMBFS.
Linux, bash find in files
find . -type f -exec grep -i "redeem reward" {} \; -print 2>/dev/null
Multiple WLANs – DD-WRT Wiki
Multiple WLANs
via Multiple WLANs - DD-WRT Wiki.
Separate networks
http://www.dd-wrt.com/wiki/index.php/VLAN_Detached_Networks_(Separate_Networks_With_Internet)
Setting up a Subversion Server on Ubuntu Gutsy Gibbon server | Subversionary
Setting up a Subversion Server on Ubuntu Gutsy Gibbon server via Setting up a Subversion Server on Ubuntu Gutsy Gibbon server | Subversionary.
How to perfect setup server
http://how2forge.org/perfect-server-ubuntu-9.10-karmic-koala-ispconfig-2-p6
Install Subversion with Web Access on Ubuntu :: the How-To Geek
Install Subversion with Web Access on Ubuntu This article covers installing subversion with the apache module so that it can be easily accessed from other systems on a public network. If you want a more secure svn server, you could use svnserve+ssh, which isn’t covered in this article. To install subversion, open a terminal and run the following command: via Install Subversion with Web Access on Ubuntu :: the How-To Geek.
How to perfect setup server
http://how2forge.org/perfect-server-ubuntu-9.10-karmic-koala-ispconfig-2-p6
Find IP
Find IP
You get onto a network and can't, or don't want, to use DHCP, how to you find out what IP addresses are available? Find IP is a bash script inspired by a an app called marco which performs the same task but is written in python and requires a number of libraries, Find IPs only dependency is arping.
Download Find IP.
See the README file for usage notes.
via Find IP - DigiNinja.