i am connecting to the internet via adsl. the modem is connected to eth0 and it shows up in ifconfig as ppp0
i have another computer with the ethernet crossover and i had set up a internet share with the other computer in debian, and i would like to do it now with arch, but there is something i am missing.
here is rc.conf
lo="lo 127.0.0.1" eth1="eth1 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.0.255" INTERFACES=(lo eth0 eth1) gateway="default gw 192.168.0.1" ROUTES=(!gateway) DAEMONS=(syslog-ng hotplug !pcmcia firestarter iptables network adsl netfs crond apache)
nothing i have tried to put in iptables.rules has worked. i had thought that firestarter would do a lot of this for me. but i guess it did not.
or perhaps if you could suggest another easy to configure firewall / net share app.
i would really appreciate it.
the other question i have is about apache.
it fails to start.
when i run apachectl config test it tells me that it cant find /etc/apache/conf.d
and it isn't there
what is this file for, and what goes in there?
The apache location is a directory, not a file. It is where the configuration files are expected.
Did you want to get an IP on the wan side via dhcp? You need eth0="dhcp" then. Also, maybe something in your iptables is for a fixed wan side Ip and you are getting 192.168.0.xxx if you are connecting by hand.
You could try a fixed IP like this:
lo="lo 127.0.0.1" eth0="eth1 192.168.0.xxx netmask 255.255.255.0 broadcast 192.168.0.255" eth1="eth1 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255" INTERFACES=(lo eth0 eth1) gateway="default gw 192.168.0.1" ROUTES=(gateway) DAEMONS=(syslog-ng hotplug !pcmcia firestarter iptables network adsl netfs crond apache)
Note that the subnet on your broadcast is 192.168.0.255 and should be 192.168.1.255
arch is the computer i want to route the internet through to another linux computer (ubuntu)
the arch computer connects to an adsl modem by way of eth0. i set it up with rppppoe.
eth1 is where i want to plug the other computer into my arch box.
so it would go
adsl ----> eth0---->Arch - eth1 ------> eth0 on the other computer
i dont really need dhcp because it is only one computer that i am connecting to mine so static would be just fine. unless it would make things easier
the broadcast on my eth1 needs to match the broadcast on eth0 of the other computer?
i kinda dont understand how that works, but i will change it and see if it works.
when i do an ipconfig , it shows all my devices are up, but i cant ping between computers
thanks for the tip with apache. apache installed with the config files in a folder called
/etc/httpd/conf so i will copy the files over to /etc/apache/conf.d
thanks for that.
thanks for helping me with this. i really dig arch a lot, and this is my last hurtle
please don't go anywhere.
Yeah, I am just guessing a lot too.
What do you see if you type 'route'?
ok, i just did a reboot (dont know what all i have tinkered with since a boot)
this is what route gave me
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 188.8.131.52 * 255.255.255.255 UH 0 0 0 ppp0 192.168.1.0 * 255.255.255.0 U 0 0 0 eth1 default 184.108.40.206 0.0.0.0 UG 0 0 0 ppp0
and here is my ifconfig
eth0 Link encap:Ethernet HWaddr 00:09:5B:E1:7E:BA inet6 addr: fe80::209:5bff:fee1:7eba/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:294 errors:0 dropped:0 overruns:0 frame:0 TX packets:281 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:235085 (229.5 Kb) TX bytes:62677 (61.2 Kb) Interrupt:16 eth1 Link encap:Ethernet HWaddr 00:11:D8:2B:41:A7 inet addr:192.168.1.1 Bcast:192.168.0.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 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:10 Base address:0xec00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:50 errors:0 dropped:0 overruns:0 frame:0 TX packets:50 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2500 (2.4 Kb) TX bytes:2500 (2.4 Kb) ppp0 Link encap:Point-to-Point Protocol inet addr:220.127.116.11 P-t-P:18.104.22.168 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1 RX packets:270 errors:0 dropped:0 overruns:0 frame:0 TX packets:256 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:227645 (222.3 Kb) TX bytes:56037 (54.7 Kb)
I hope someone who knows what they are doing can look at this.
The eth0 w/o IP and the ppp0 w/o hardware address looks suspicious, but I have not used ppp for years so I may be forgetful. The routes look good to me. Maybe it is back to your firestarter config. Also, I never use the iptables daemon, perhaps it is loading a config after the firestarter one and thus overwriting the forwarding? I will have a peek at the scripts. Just guessing again.
Also, make sure you have 1 here:
Edit: More help...
http://bbs.archlinux.org/viewtopic.php? … ght=router