iptables -F
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -L -v
iptables -A INPUT -s 111.111.111.111 -j ACCEPT # change the IP address as appropriate
iptables-save
rcSuSEfirewall2 restart
do not forget to start firewall automatically
Freitag, 11. September 2009
Samstag, 27. Juni 2009
iphone tunnel suite 2.7 does not work any more with iPhoen firmware 3.0
take i-funbox which is very good: http://www.i-funbox.com/
get information about devices
To get information about devices attached to a computer run the command:
blkid
blkid
Mittwoch, 24. Juni 2009
tethering
Follow this steps and you can connect your laptop to the
internet through your iphone
http://help.benm.at/help.php
internet through your iphone
http://help.benm.at/help.php
Samstag, 6. Juni 2009
convert flv to mpg
ffmpeg -i test.flv -ar 22050 -ab 56 -r 25 -f flv -b 400 -qmin 3 -qmax 6 -s 320x240 test.mpg
Freitag, 5. Juni 2009
convert AVI to DVD format
1) -> (mencoder -o out.avi -noidx -oac copy -ovc copy ccmovie.avi)
-> ffmpeg -i out.avi -y -target ntsc-dvd -sameq -aspect 16:9 out.mpg
-> dvdauthor --title -o dvd -f out.mpg
-> dvdauthor -o dvd -T
-> mkisofs -dvd-video -o dvd.iso dvd/
-> growisofs -dvd-compat -dvd-video -speed=4 -Z /dev/dvd dvd/*
OR
2) devede
-> ffmpeg -i out.avi -y -target ntsc-dvd -sameq -aspect 16:9 out.mpg
-> dvdauthor --title -o dvd -f out.mpg
-> dvdauthor -o dvd -T
-> mkisofs -dvd-video -o dvd.iso dvd/
-> growisofs -dvd-compat -dvd-video -speed=4 -Z /dev/dvd dvd/*
OR
2) devede
Mittwoch, 13. Mai 2009
show MAC address
To see the MAC address of a host in the network do the following:
a) ping host
b) arp -a or arp -a host
a) ping host
b) arp -a or arp -a host
Abonnieren
Posts (Atom)