/usr/include/linux/ip_fw.h line 253 field `timer' has incomplete typeとなってダメです(うそつきーー)。多分linux2.0.35だからなんでしょう。で、色々当たってみると、ipfwadm.cをちょこっと書き換えて、 #include <linux/ip_fw.h>する前に#include <linux/timer.h>すれば良いらしいので、
#include <linux/timer.h> #include <linux/ip_fw.h>とipfwadm.cを変更(というほど大袈裟ではないか)しました。これでmake出来ます。その後はsuでmake installでOK。
# LILO configuration file # generated by 'liloconfig' # # Start LILO global section append = "ether=0,0,eth1" boot = /dev/hda #compact # faster, but won't work on all systems. delay = 50 vga = normal # force sane state # ramdisk = 0 # paranoia setting # End LILO global section # Linux bootable partition config begins image = /vmlinuz root = /dev/hda1 label = Linux read-only # Non-UMSDOS filesystems should be mounted read-only for checking # Linux bootable partition config endsさらにliloを実行します。
# Uncomment these to set up your IP routing table. /sbin/route add -net ${NETWORK} netmask ${NETMASK} eth0 if [ ! "$GATEWAY" = "" ]; then /sbin/route add default gw ${GATEWAY} netmask 0.0.0.0 metric 1 fi #この行以降が追加した部分です。 #eth1---IP masq. /sbin/ifconfig eth1 192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0 /sbin/route add -net 192.168.1.0 netmask 255.255.255.0 device eth1 # End of rc.inet1今回はプライベートネットワークアドレスとして192.168.1.0/255.255.255.0を使いました。
# ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0 UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1 RX packets:20 errors:0 dropped:0 overruns:0 frame:0 TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 coll:0 eth0 Link encap:Ethernet HWaddr 00:40:26:3C:57:51 inet addr:160.12.39.10 Bcast:160.12.39.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1492 errors:0 dropped:0 overruns:0 frame:0 TX packets:449 errors:0 dropped:0 overruns:0 carrier:0 coll:0 Interrupt:11 Base address:0x7280 eth1 Link encap:Ethernet HWaddr 00:A0:B0:08:05:56 inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 coll:0 Interrupt:10 Base address:0x7200と表示されていればOKです。
if [ -f /sbin/ipfwadm ]; then echo -n "Starting IP masquarade " /sbin/ipfwadm -F -a m -S 192.168.1.0/24 -D 0.0.0.0/0 /sbin/ipfwadm -F -p deny fi次に/etc/rc.d/rc.modulesを以下のように変更します。
#!/bin/sh # rc.modules 1.11 Tue Jun 25 14:29:34 PDT 1996 pjvなおkerneldを動かしていますが、この必要はないかも知れません。# (途中省略) # Update module dependencies: echo "Updating module dependencies for Linux `uname -r`:" /sbin/depmod -a # Automatic module loading. To load and unload kernel modules # automatically as needed, uncomment the lines below to run kerneld. # In some cases, you'll need to create aliases to load the correct # module. For more information, see the docs in /usr/doc/modules. if [ -x /sbin/kerneld ]; then /sbin/kerneld delay=90 fi (途中省略) # Floppy drive support: # (Most Linux kernels should already contain this) #/sbin/modprobe floppy #IP Masq Support /sbin/modprobe ip_masq_ftp.o /sbin/modprobe ip_masq_vdolive.o /sbin/modprobe ip_masq_cuseeme.o /sbin/modprobe ip_masq_raudio.o /sbin/modprobe ip_masq_quake.o /sbin/modprobe ip_masq_irc.o
Plamo Linux on FMVのページへ
このホームページに関するお問い合わせは