Linux IPv6 opsætning

Noterne er baseret på følgende netværks konfiguration:
Public IPv4 IP: 80.199.18.5
Router IPv6 IP: 3ffe:80ee:603::1/128
Klient IPv6 IP: 3ffe:80ee:603::2
IPv4 IP på tunnel endpoint i .dk: 62.61.157.209

Klient opsætning:
På klienterne skal følgende indskrives i et af startscriptene:

modprobe ipv6
ifconfig eth0 add 3ffe:80ee:603::2/48
route -A inet6 add 2000::/3 gw 3ffe:80ee:603::1

Hvor IPv6 IP for klienten er ::2.

Server opsætning:
Scriptet rc.ipv6:

# Connection to XS26.net
MYIPv4="80.199.18.5" 		# My IPv4 address
XSIPv4="62.61.157.209"  	# PoP's IPv4 address
MYIPv6="3ffe:80ee:603::1/128"	# Choose any IPv6 address from the range
				# you've got from XS26
TUNLIF="xs26-0"			# interface used for the tunnel - default should be ok

iptunnel add $TUNLIF mode sit local $MYIPv4 remote $XSIPv4 ttl 64
ifconfig $TUNLIF up
route -A inet6 add 2000::/3 dev $TUNLIF
ifconfig $TUNLIF add $MYIPv6

#connection to localnet
ifconfig eth0 add 3ffe:80ee:603::1/48
#activating forward
echo 1 > /proc/sys/net/ipv6/conf/all/forwarding
Udgivet i Knowledge Base, Linux, Old Base | Skriv en kommentar

Rsync synkronization of files trough ssh

peanut# rsync -ave ssh root@unifix.org:/www/base.fujang.dk .
root@unifix.org's password:
receiving file list ... done
base.fujang.dk/
base.fujang.dk/.ssh/
base.fujang.dk/cgi-bin/


Synkronizes "." with "/www/base.fujang.dk" on unifix.org , read as the user root, you can prevent typing password by using keyfiles for furter instructions see http://base.fujang.dk/cgi-bin/index.pl?action=show&ID=13
Udgivet i FreeBSD, Knowledge Base, Linux, Old Base | Skriv en kommentar

DNS Zone transfeers with dig

Zone transfer query send to ns.unifix.org for the domain 2600dk

dig @ns.unifix.org 2600dk.net AXFR
Udgivet i Domain Name System, Knowledge Base, Networking, Old Base | Skriv en kommentar

.htaccess password protection

The htaccess file:
AuthName "-- Clasified area --"
AuthType Basic
AuthUserFile /www/htpasswd
require user rip rap rup


To initialize the passwd file: , file must be outside wwwroot
root@chilibeans:/root# htpasswd -c /www/htpasswd mike
New password:
Re-type new password:
Adding password for user mike

Following to add news users use same command except "-c"
Udgivet i Apache, FreeBSD, Knowledge Base, Lamp, Linux, Old Base | Skriv en kommentar

check open ports on Linux with Netstat

If you for some reason need to find out, what program uses a specific port use this cmd:

netstat -p -l --numeric-ports
Udgivet i Knowledge Base, Linux, Networking, Old Base | Skriv en kommentar

Probe version of Named deamons

Nameserver ns.tele.dk runs Bind 9.2.2, bind 8.2 og hoejere kan fake version output.

root@chilibeans:~# dig @ns.tele.dk txt chaos version.bind.

; <<>> DiG 9.2.2rc1 <<>> @ns.tele.dk txt chaos version.bind.
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32816
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;version.bind.                  CH      TXT

;; ANSWER SECTION:
version.bind.           0       CH      TXT     "9.2.2"

;; Query time: 13 msec
;; SERVER: 193.162.159.194#53(ns.tele.dk)
;; WHEN: Tue Jul  8 02:08:29 2003
;; MSG SIZE  rcvd: 48
Udgivet i Domain Name System, Knowledge Base, Networking, Old Base | Skriv en kommentar

Indstillinger i Mozilla Firebird

Here's some tips:
more can be found at http://texturizer.net/firebird/tips.html

Smooth Scrolling

Mozilla Firebird 0.6 has a Smooth Scrolling feature enabled by default. Later nightly builds have the feature disabled. To enable or disable this feature, add the following code to your user.js file:
// Smooth Scrolling (true = on, false = off):
user_pref("general.smoothScroll", true); 

Change the search mode in the address field

By default, if you enter a search term in the address field and press Enter, a Google "I'm Feeling Lucky" search is performed, and you're taken to the first result of that search directly. If you prefer to see the standard search result list instead, add the following code to your user.js file:
// Change to normal Google search:
user_pref("keyword.URL", "http://google.com/search?btnG=Google+Search&q=");

Of course, you could also change to a completely different search engine by changing the string to something else. The default search string is: "http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=".

--- ||| ---

The profile folder is where Mozilla Firebird saves all your settings and refers to a location on your hard drive.

On Windows 95/98/Me, the path is usually C:\WINDOWS\Application Data\Phoenix\Profiles\default\xxxxxxxx.slt\, where xxxxxxxx is a random string of 8 characters. Just browse to C:\WINDOWS\Application Data\Phoenix\Profiles\ and the rest should be obvious.

On Windows 2000/XP, the path is usually %AppData%\Phoenix\Profiles\default\xxxxxxxx.slt\.

On Linux, the path is usually ~/.phoenix/default/xxxxxxxx.slt.

On MacOS X, the path is usually ~/Library/Phoenix/Profiles/default/xxxxxxxx.slt.

user.js

This is the main preferences file for Mozilla Firebird and is located in your profile folder. The file does not exist by default, so you need to create it before you can start adding your preferences.
Udgivet i Knowledge Base, Linux, Old Base, Windows | Skriv en kommentar

portupgrade in FreeBSD

if tou would like to upgrade all installed ports on your machine 
simply make a 
"portupgrade -a"
if it make some trouble and says something about i don't like this because i need some dependendies or something then put a -O on it
Udgivet i FreeBSD, Knowledge Base, Old Base | Skriv en kommentar

mIRC like perform in Xchat (multiple connect commands)

Instead of being limited to one connect command you can make af file with all the commands you need in.

In "Connect Command" you can use "/load -e /path/to/file" with all the things needed.
Make individual files for each network you are on.

For quakenet you can do something like this in the file:
msg Q@CServe.quakenet.org auth username password
mode yournickname +x 
msg q invite #secret_channel_that_is_invite_only
j #channel_1
j #channel_2
j #secret_channel_that_is_invite_only


// Vladimirr.dk
Udgivet i FreeBSD, IRC, Knowledge Base, Linux, Old Base | Skriv en kommentar

Password recovery on Cisco-routers

Step-by-step...

1. Get connected with a rollover-cable from your serial-interface, to the
routers console-interface.

2. Coldboot your router, and within the first 60 secs of the boot-sequence 
send the break signal.

3. You're now in boot-mode, and now we can change the routers config-register 
to NOT load the startup-config from the routers NVRAM at startup.
This are done by changeing it from default 0x2102 to 0x2142 by entering the 
command: 'o/r 0x2142'.

4. Reboot the router by entering 'i'.

5. Bypass the setup-mode, and enter privileged mode.

6. Copy the bypassed startup-config to running-config by entering the 
command: 'copy start run'. We will not be prompted for password, as we already 
are in privileged mode.

7. Set new passwords on privileged mode, interfaces, lines ect.

8. Go to global configuration mode and reset the config-register to the 
default, by entering: 'config-register 0x2102'.

!! Remember to backup the running config to NVRAM!

// Benne
Udgivet i Cisco, Knowledge Base, Networking, Old Base | Skriv en kommentar