In advance I'd like to beg your pardon for my English. It's not my native language, so sometimes it's a bit hard to understand some moments. And in fact I'm not sure if I write correctly.
Well.. I've just wanted to create a similar topic, but now it seems to be i have no need.
As I said I've got a similar problem. I've got two PCs. One with Slackware 11(connected to the internet) and one with XP. I would like to organize a little "network" of two computers and to give the second machine an opportunity to connect to the internet thought the fist one.
The connection scheme is like that:
internet---Slackware PC---XP PC
This are the info my ISP gave me:
Subnet Mask: 255.255.255.0
Default Gateway: 172.21.3.1
DNS: 184.108.40.206 and 220.127.116.11
This is my /etc/rc.d/rc.inet1
# Config information for eth1: //as U understand, it connected to the second machine
# Config information for eth2: //to the isp
eth1 Link encap:Ethernet HWaddr 00:14:2A:C4:72:2F
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST 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
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth2 Link encap:Ethernet HWaddr 00:11:95:25:71:1D
inet addr:172.21.3.39 Bcast:172.21.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26438 errors:0 dropped:0 overruns:0 frame:0
TX packets:9394 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:10133820 (9.6 MiB) TX bytes:1933381 (1.8 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:164 errors:0 dropped:0 overruns:0 frame:0
TX packets:164 errors:0 dropped:0 overruns:0 carrier:0
RX bytes:60518 (59.0 KiB) TX bytes:60518 (59.0 KiB)
My route -n: //seemes to be wrong?
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
172.21.3.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 172.21.3.1 0.0.0.0 UG 1 0 0 eth2
Else i've configured BIND, but it doesn't work. Unfortunately, as my experience in linux is rather poor yet, I can't exactly understand how to solve this problem.
//compile and install the "capability" module? Am I right?
Here is rc.bind restart command:
Stopping BIND: /usr/sbin/rndc stop
Starting BIND: /usr/sbin/named
WARNING: named did not start. Perhaps this is because
the "capability" module required by newer kernels is
not loaded (or built into the kernel)?
Attempting to load security capability module:
Attempting to start named again: /usr/sbin/named
FAILED: Sorry, but even after attempting to load
the "capability" module, named did not start.
There may be a different configuration error that
needs fixing. Good luck!
And else i've minimally configured iptables:
iptables -F; iptables -t nat -F; iptables -t mangle -F
iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to 172.21.3.39
and turned on routing:
echo 1 > /proc/sys/net/ipv4/ip_forward
On the computer with XP I set these settings:
I would like to test my suggested settings if they'll work but i can't cause i even can't ping my second PC
I'm new to linux, so sometimes i need help. First I try to do everything by myself - the best way to learn, i think, but already for a week I can't solve this puzzle. I haven't much time to read many linux books or articles in the net, so I would be incredibly glad if you help me!
Best wishes, Sam!
p.s. And one more question. How can I start the LISA daemon for KDE? I didn't find it anywhere. And even KDE Help Center didn't help me. :8$