[Imc-tech] subnetmask

Zachary C.Miller wolfgang at wolfgang.groogroo.com
Sat May 12 17:24:37 CDT 2001


I just got Dave's message asking for info about the router. Sorry I
was asleep when you called.

Here is the configuration (/etc/network/interfaces) for the router:

iface eth0 inet static
        address 64.5.74.245
        gateway 64.5.74.241
        netmask 255.255.255.248
        network 64.5.74.240
        broadcast 64.5.74.248        
iface eth1 inet static
        address 192.168.1.1
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255 

Here is the routing table:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
64.5.74.240     *               255.255.255.248 U     0      0        0 eth0
192.168.1.0     *               255.255.255.0   U     0      0        0 eth1
default         indie241.indie- 0.0.0.0         UG    0      0        0 eth0

Here is the dhcp.conf:

option domain-name "indymedia.org";
option domain-name-servers 192.168.1.1, 64.5.64.21, 64.5.64.23;
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.128 192.168.1.254;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.1.255;
  option routers 192.168.1.1;
}


These are the ipchains rules that I used (in /etc/init.d/networking):

        /sbin/ipchains -M -S 7200 10 160
        /sbin/ipchains -P forward DENY
        /sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ

-- 
Zachary C. Miller - @= - http://wolfgang.groogroo.com/
IMSA 1995 - UIUC 2000 - Just Another Leftist Muppet - Ya Basta!
 Social Justice, Community, Nonviolence, Decentralization, Feminism,
 Sustainability, Responsibility, Diversity, Democracy, Ecology






More information about the Imc-tech mailing list