KfWiki : Network

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Revision [1999]

Most recent edit made on 2008-10-13 08:49:17 by WikiAdmin

Additions:
On Solaris:
snoop -d <interface> -x0 -v 'ether[20:2] = 0x2000'




Revision [1997]

Edited on 2008-10-13 01:09:53 by WikiAdmin

Additions:
Traffic shaping
tc




Revision [1908]

Edited on 2008-08-26 02:52:49 by WikiAdmin

Additions:
Stunnel




Revision [1818]

Edited on 2008-07-16 18:23:00 by WikiAdmin

Additions:
tcpdump -nn -v -s 1500 -c 1 'ether[20:2]
0x2000' -i eth0


Deletions:
tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2]
0x2000'




Revision [1817]

Edited on 2008-07-16 07:11:46 by WikiAdmin

Additions:
# then do a broadcast ping, possibly on another screen




Revision [1816]

Edited on 2008-07-16 07:11:22 by WikiAdmin

Additions:

Getting vlan id

Need to see what vlan id an interface is connected to?
tcpdump -nn -v -i eth0 -s 1500 -c 1 'ether[20:2]
0x2000'




Revision [1454]

Edited on 2008-03-04 06:54:02 by WikiAdmin

Additions:
DHCP




Revision [1452]

Edited on 2008-03-04 06:53:13 by WikiAdmin

Additions:
Network Services


Deletions:
Network Services




Revision [1450]

Edited on 2008-03-04 06:52:35 by WikiAdmin

Additions:
Network Services


Deletions:
Services




Revision [1449]

Edited on 2008-03-04 06:52:24 by WikiAdmin

Additions:
Services
DNS




Revision [1447]

Edited on 2008-03-04 06:51:29 by WikiAdmin

Deletions:
DNS
DNS Queries
Bind9 In 10 minutes
DNS zone file
PowerDNS - a DNS server designed to work with a database backend
Delegating sub-domains




Revision [1445]

Edited on 2008-03-04 06:50:20 by WikiAdmin

Additions:
DNS Queries
Delegating sub-domains




Revision [1439]

Edited on 2008-03-04 06:46:29 by WikiAdmin

Deletions:

Bind in 10 minutes

Bind usually comes with Redhat / Freebsd. To configure a simple forwarding nameserver with a local zone, do the followings:
Edit named.conf
options {
forwarders {
1.2.3.4;
2.3.4.5;
};
}
zone "mydomain.home" IN {
type master;
file "mydomain.home.zone";
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192.ptr";
};
If you have a DNS server somewhere, and need to config this DNS as a slave zone, do:
zone "realdomain.com" {
type slave;
file "realdomain.com.zone";
masters {
7.8.9.0;
};
};
Then create the master zone file like
$ORIGIN mydomain.home
$TTL 3600
mydomain.home. IN SOA ns1.mydomain.home. hostmaster.mydomain.home. (
2006051501 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
86400 ; Minimum TTL
)
IN NS ns1.mydomain.home.
IN A 192.168.13.30
ns1 IN A 192.168.13.30
free IN A 192.168.13.30
hopchai.home IN A 192.168.13.2

Bind DNS SPF record

SPF records can be build on OpenSPF.org [http://www.openspf.org]
Inserting a long SPF record is now possible with
IN TXT "v=spf1 ip4:200.1.1.0/24 a ptr a:domain1.com
a:domain2.com a:domain4.com " "a:domain3.com a:domain5.com a:domain6.com
mx:mx1.com mx:mx2.com mx:mx3.com mx:mx4.com mx:mx5.com include:my_isp.com ~all"




Revision [1438]

Edited on 2008-03-04 06:46:16 by WikiAdmin

Additions:
DNS
Bind9 In 10 minutes
DNS zone file
PowerDNS - a DNS server designed to work with a database backend
Other network stuff
ifconfig

Linux wireless networking

After driver and firmware are installed, use these commands to bring up your wireless NIC. Here is an excellent wiki for Linux wireless networking.
iwconfig eth1 channel 11
iwconfig eth1 key restricted s:mysecretkey00
iwconfig eth1 mode Managed
ifup eth1

Firewire networking

Firewire networking under linux is extremely easy. Tested on FC5
Note: On Fedora Core 7, firewall stack has been rewritten. Don't know what that means but the default kernel does not have eth1394 enabled. To use firewire networking, one need to re-compile the kernel.
modprobe eth1394
echo "alias eth1 eth1394 >> /etc/modprobe.conf"
ifconfig eth1 10.0.0.1 netmask 255.255.255.0

It's a little tricker to get firewire networking to work on FC6. I got the following after many attempts. Remember this will break when the kernel is upgraded.
alias eth1 eth1394
install eth1394 modprobe -k raw1394; insmod  /lib/modules/2.6.18-1.2798.fc6/kernel/drivers/ieee1394/eth1394.ko 

Bind in 10 minutes

Bind usually comes with Redhat / Freebsd. To configure a simple forwarding nameserver with a local zone, do the followings:
Edit named.conf
options {
	forwarders {
		1.2.3.4;
		2.3.4.5;
	};
}
zone "mydomain.home" IN {
	type master;
	file "mydomain.home.zone";
};
zone "1.168.192.in-addr.arpa" IN {
	type master;
	file "1.168.192.ptr";
};

If you have a DNS server somewhere, and need to config this DNS as a slave zone, do:
zone "realdomain.com" {
	type slave;
	file "realdomain.com.zone";
	masters {
		7.8.9.0;
	};
};

Then create the master zone file like
$ORIGIN mydomain.home
$TTL 3600
mydomain.home.       IN      SOA     ns1.mydomain.home. hostmaster.mydomain.home. (
	                    2006051501      ; Serial
	                    10800           ; Refresh
	                    3600            ; Retry
	                    604800          ; Expire
	                    86400           ; Minimum TTL
	                    )
	                    IN      NS      ns1.mydomain.home.
	                    IN      A       192.168.13.30
ns1           IN      A       192.168.13.30
free          IN      A       192.168.13.30
hopchai.home          IN A 192.168.13.2

Bind DNS SPF record

SPF records can be build on OpenSPF.org [http://www.openspf.org]
Inserting a long SPF record is now possible with
   IN      TXT     "v=spf1 ip4:200.1.1.0/24 a ptr a:domain1.com
a:domain2.com a:domain4.com " "a:domain3.com a:domain5.com a:domain6.com
mx:mx1.com mx:mx2.com mx:mx3.com mx:mx4.com mx:mx5.com include:my_isp.com ~all"




Revision [1437]

Edited on 2008-03-04 06:45:46 by WikiAdmin

Deletions:
Other network stuff
DNS zone file
ifconfig
PowerDNS - a DNS server designed to work with a database backend

Linux wireless networking

After driver and firmware are installed, use these commands to bring up your wireless NIC. Here is an excellent wiki for Linux wireless networking.
iwconfig eth1 channel 11
iwconfig eth1 key restricted s:mysecretkey00
iwconfig eth1 mode Managed
ifup eth1

Firewire networking

Firewire networking under linux is extremely easy. Tested on FC5
Note: On Fedora Core 7, firewall stack has been rewritten. Don't know what that means but the default kernel does not have eth1394 enabled. To use firewire networking, one need to re-compile the kernel.
modprobe eth1394
echo "alias eth1 eth1394 >> /etc/modprobe.conf"
ifconfig eth1 10.0.0.1 netmask 255.255.255.0

It's a little tricker to get firewire networking to work on FC6. I got the following after many attempts. Remember this will break when the kernel is upgraded.
alias eth1 eth1394
install eth1394 modprobe -k raw1394; insmod  /lib/modules/2.6.18-1.2798.fc6/kernel/drivers/ieee1394/eth1394.ko 

Bind in 10 minutes

Bind usually comes with Redhat / Freebsd. To configure a simple forwarding nameserver with a local zone, do the followings:
Edit named.conf
options {
	forwarders {
		1.2.3.4;
		2.3.4.5;
	};
}
zone "mydomain.home" IN {
	type master;
	file "mydomain.home.zone";
};
zone "1.168.192.in-addr.arpa" IN {
	type master;
	file "1.168.192.ptr";
};

If you have a DNS server somewhere, and need to config this DNS as a slave zone, do:
zone "realdomain.com" {
	type slave;
	file "realdomain.com.zone";
	masters {
		7.8.9.0;
	};
};

Then create the master zone file like
$ORIGIN mydomain.home
$TTL 3600
mydomain.home.       IN      SOA     ns1.mydomain.home. hostmaster.mydomain.home. (
	                    2006051501      ; Serial
	                    10800           ; Refresh
	                    3600            ; Retry
	                    604800          ; Expire
	                    86400           ; Minimum TTL
	                    )
	                    IN      NS      ns1.mydomain.home.
	                    IN      A       192.168.13.30
ns1           IN      A       192.168.13.30
free          IN      A       192.168.13.30
hopchai.home          IN A 192.168.13.2

Bind DNS SPF record

SPF records can be build on OpenSPF.org [http://www.openspf.org]
Inserting a long SPF record is now possible with
   IN      TXT     "v=spf1 ip4:200.1.1.0/24 a ptr a:domain1.com
a:domain2.com a:domain4.com " "a:domain3.com a:domain5.com a:domain6.com
mx:mx1.com mx:mx2.com mx:mx3.com mx:mx4.com mx:mx5.com include:my_isp.com ~all"




Revision [1433]

Edited on 2008-03-03 23:45:30 by WikiAdmin

Additions:
Network Probe
Nmap




Revision [771]

Edited on 2007-07-05 08:42:36 by WikiAdmin

Additions:
Note: On Fedora Core 7, firewall stack has been rewritten. Don't know what that means but the default kernel does not have eth1394 enabled. To use firewire networking, one need to re-compile the kernel.




Revision [698]

Edited on 2007-06-12 07:50:39 by WikiAdmin

Additions:
Software firewall
Other network stuff
PowerDNS - a DNS server designed to work with a database backend


Deletions:

Software firewall

PowerDNS - a DNS server designed to work with a database backend




Revision [697]

Edited on 2007-06-12 07:49:49 by WikiAdmin

Additions:
PowerDNS - a DNS server designed to work with a database backend




Revision [634]

The oldest known version of this page was edited on 2007-06-06 00:07:13 by WikiAdmin
HomePage » Network


Software firewall

iptables
ipfw
DNS zone file
ifconfig

Linux wireless networking

After driver and firmware are installed, use these commands to bring up your wireless NIC. Here is an excellent wiki for Linux wireless networking.

iwconfig eth1 channel 11
iwconfig eth1 key restricted s:mysecretkey00
iwconfig eth1 mode Managed
ifup eth1


Firewire networking

Firewire networking under linux is extremely easy. Tested on FC5
modprobe eth1394
echo "alias eth1 eth1394 >> /etc/modprobe.conf"
ifconfig eth1 10.0.0.1 netmask 255.255.255.0


It's a little tricker to get firewire networking to work on FC6. I got the following after many attempts. Remember this will break when the kernel is upgraded.
alias eth1 eth1394
install eth1394 modprobe -k raw1394; insmod  /lib/modules/2.6.18-1.2798.fc6/kernel/drivers/ieee1394/eth1394.ko 


Bind in 10 minutes

Bind usually comes with Redhat / Freebsd. To configure a simple forwarding nameserver with a local zone, do the followings:
Edit named.conf

options {
	forwarders {
		1.2.3.4;
		2.3.4.5;
	};
}

zone "mydomain.home" IN {
	type master;
	file "mydomain.home.zone";
};

zone "1.168.192.in-addr.arpa" IN {
	type master;
	file "1.168.192.ptr";
};


If you have a DNS server somewhere, and need to config this DNS as a slave zone, do:

zone "realdomain.com" {
	type slave;
	file "realdomain.com.zone";
	masters {
		7.8.9.0;
	};
};


Then create the master zone file like

$ORIGIN mydomain.home
$TTL 3600
mydomain.home.       IN      SOA     ns1.mydomain.home. hostmaster.mydomain.home. (
	                    2006051501      ; Serial
	                    10800           ; Refresh
	                    3600            ; Retry
	                    604800          ; Expire
	                    86400           ; Minimum TTL
	                    )

	                    IN      NS      ns1.mydomain.home.
	                    IN      A       192.168.13.30
ns1           IN      A       192.168.13.30
free          IN      A       192.168.13.30
hopchai.home          IN A 192.168.13.2


Bind DNS SPF record

SPF records can be build on OpenSPF.org [http://www.openspf.org]
Inserting a long SPF record is now possible with
   IN      TXT     "v=spf1 ip4:200.1.1.0/24 a ptr a:domain1.com
a:domain2.com a:domain4.com " "a:domain3.com a:domain5.com a:domain6.com
mx:mx1.com mx:mx2.com mx:mx3.com mx:mx4.com mx:mx5.com include:my_isp.com ~all"
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.5145 seconds