git config --global user.name "Peter Holik"
git config --global user.email "peter AT holik.at"
check kernel out with git
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
first i had to export usbnet_get_ethernet_addr from usbnet.c
and to fix cdc_ether.c
git commit -am "export get_ethernet_addr from cdc.ether.c in usbnet"
then copy my new driver int51x1.c to /usr/src/linux-2.6/drivers/net/usb/ and modify /usr/src/linux-2.6/drivers/net/usb/Kconfig and /usr/src/linux-2.6/drivers/net/usb/Makefile
git add /usr/src/linux-2.6/drivers/net/usb/int51x1.c
git commit -am "usb driver for intellon int51x1 based PLC like devolo dlan duo"
git format-patch -s origin/master
Then mail the created file to linux kernel mailinglist:
cat 0001-export-usbnet_get_ethernet_addr-from-usbnet-and-fixe.patch | \
mail linux-kernel@vger.kernel.org
cat 0002-usb-driver-for-intellon-int51x1-based-PLC-like-devol.patch | \
mail linux-kernel@vger.kernel.org
Many thanks to the guys at linux-kernel@vger.kernel.org for suggestions and improvements.
Undo last commit with git reset --soft HEAD^
My driver will be part of linux kernel 2.6.31
git quick reference
[ view entry ] ( 1216 views ) | print article
With iptables module recent you can limit the count of tcp connection attempts. In my case i allow only 3 ssh connection attempts per minute. This stops script kiddies doing ssh brute force attacs.
iptables -N synflood
iptables -A synflood -p tcp --dport ssh -m recent --set --name SSH
iptables -A synflood -p tcp --dport ssh -m recent --update \
--seconds 60 --hitcount 4 --name SSH -j DROP
iptables -A INPUT -p tcp -m state --state NEW -j synflood
iptables -A FORWARD -i $OUT -p tcp -m state --state NEW -j synflood
[ view entry ] ( 874 views ) | print article
sftp -o Ciphers=blowfish-cbc USER@HOST
[ view entry ] ( 822 views ) | print article
for i in $(seq 2 254); do ping -c 1 192.168.0.$i | grep -q rtt && echo "found 192.168.0.$i"; done
[ view entry ] ( 864 views ) | print article
apt-get install isdnutils-base
because ippp0 sets a default route we change to ippp1:
mv /etc/isdn/device.ippp0 /etc/isdn/device.ippp1
mv /etc/isdn/ipppd.ippp0 /etc/isdn/ipppd.ippp1
/etc/isdn/device.ippp1 (remove '# REMOVE'):
LOCALMSN='XXXXX'
REMOTEMSN=
isdnctrl ihup ${device} on
isdnctrl secure ${device} off
/etc/isdn/ipppd.ippp1 (remove '# REMOVE'):
debug
name YYYYY
/etc/ppp/chap-secrets:
# client server secret IP addresses
YYYYY HOSTNAME PASSWORD ""
[ view entry ] ( 821 views ) | print article
<<First <Back | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Next> Last>>