LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   router setting (https://www.linuxquestions.org/questions/linux-networking-3/router-setting-246710/)

baremacho 10-24-2004 10:05 AM

router setting
 
hi guys,

I just set up fedora core 1 as my router.
The problem is that I can't access internet(I mean that I can't browse website)
from my linux box.But my LAN computers can access internet and browse
website.Maybe I misconfigured the iptables things or misconfigured how to assign ip to each ip cause I assign them with GUI and not by the command.

I got my eth0 as my external NIC and eth1 as my internal NIC.

okay,this is part of my firewall scripts:

INNER_NET=192.168.0.0/24
FWALL_IP=192.168.0.1
INNER_PORT=eth1
OUTER_PORT=ppp0
IPTABLES="/sbin/iptables"
MODPROBE="/sbin/modprobe"

and so on...

and i use rp-pppoe to connect to internet which means i have dynamic ip.

Can anyone help me how to solve this problem?

thanks..

david_ross 10-24-2004 10:26 AM

Do you have your ISPs DNS servers listed in /etc/resolv.conf?

baremacho 10-24-2004 12:56 PM

hey..it helps me a alot..thanks...
btw..it was set 127.0.0.1
and i dont know what the meaning of it.
btw..thanks.

ugge 10-24-2004 02:36 PM

The setting of 127.0.0.1 points to your local machine. This is if you have an own DNS server running on the same machine.

baremacho 10-25-2004 08:51 AM

really?somewhat it change when i reboot the pc.anyway..thanks again.I can put it manually if i want to browse
the internet.;)

Well,actually I want to run server and also router from my fedora core 1.
I have succesfully build a router and my network can browse the internet and share files.
Well right now i'm still configuring how to make a DNS server.

well,when i run command 'service named start' and i
want to check at /var/log/messages

this error appear.

Code:

Oct 25 08:51:31 araki named[6700]: starting BIND 9.2.2-P3 -u named -t /var/named/chroot
Oct 25 08:51:31 araki named[6700]: using 1 CPU
Oct 25 08:51:31 araki named[6700]: loading configuration from '/etc/named.conf'
Oct 25 08:51:31 araki named[6700]: no IPv6 interfaces found
Oct 25 08:51:31 araki named[6700]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 25 08:51:31 araki named[6700]: listening on IPv4 interface eth1, 192.168.0.1#53
Oct 25 08:51:31 araki named[6700]: command channel listening on 127.0.0.1#953
Oct 25 08:51:31 araki named[6700]: zone 0.0.127.in-addr.arpa/IN: loaded serial 2004091501
Oct 25 08:51:31 araki named[6700]: zone 0.168.192.in-addr.arpa/IN: loaded serial 1
Oct 25 08:51:31 araki named[6700]: dns_master_load: localhost.zone:3: ignoring out-of-zone data (shinshu-u.org)
Oct 25 08:51:31 araki named[6700]: dns_master_load: localhost.zone:15: unknown RR type 'IN'
Oct 25 21:51:31 araki named: named startup succeeded
Oct 25 08:51:31 araki named[6700]: zone localhost/IN: loading master file localhost.zone: unknown class/type
Oct 25 08:51:31 araki named[6700]: zone shinshu-u.org/IN: loaded serial 1
Oct 25 08:51:31 araki named[6700]: running
Oct 25 08:51:31 araki named[6700]: zone shinshu-u.org/IN: sending notifies (serial 1)
Oct 25 08:51:31 araki named[6700]: zone 0.168.192.in-addr.arpa/IN: sending notifies (serial 1)
Oct 25 21:51:43 araki kernel: UNDEFIND_INPUT: IN=ppp0 OUT= MAC= SRC=xxx.xxx.xxx.xxx
DST=xxx.xxx.xxx.xxx LEN=48 TOS=0x00 PREC=0x00 TTL=119 ID=3276 DF PROTO=TCP
SPT=3554 DPT=445 WINDOW=65044 RES=0x00 SYN URGP=0

don't know where i did the mistake.Maybe I misconfigured the eth0 and eth1 things.
Does anyone know where i should fix it?

ugge 10-25-2004 09:35 AM

First you will have to create a valid setup of zone files for the domains you control.
To understand this you will have to catch up on some reading on how the DNS system is built and how these zone files work. There are graphical programs to do this configuration, but you would still have to know how it works.

If you don't want to serve your own domain you can set up a caching only server.

Have a look at DNS how-to on www.tldp.org


All times are GMT -5. The time now is 05:23 AM.