LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2003, 12:11 PM   #1
shazam
LQ Newbie
 
Registered: Mar 2003
Location: Marl, Germany
Distribution: Suse 8.1
Posts: 7

Rep: Reputation: 0
DNS-Server Problem ?


My troblem is, that I can't ping my router under its i-net ip from my windows box, however under its lan-ip. The router can ping itself under its lan & i-net ip.

I use a PIII with 2 Network cards an Suse 8.1 as router, I can connect to every ip on the internet, except my i-net ip.

I'm using a DHCP server to set up the lan so far, and I have "dnsmasq" running as my dns, because it was too complicated for me to configure bind 9 as an dns.

Do I need to configure my bind 9 ? and if so, how do I do it ? (I want some easy to understand manuals !)
 
Old 03-04-2003, 12:29 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
How does your firewall script look like? I guess you have one, because you need masquerading.
 
Old 03-05-2003, 09:23 AM   #3
shazam
LQ Newbie
 
Registered: Mar 2003
Location: Marl, Germany
Distribution: Suse 8.1
Posts: 7

Original Poster
Rep: Reputation: 0
Well, can't tell you directly, all I know is, that I'm using the built-in firewall by Suse, however I can tell you that I following ports opened:
80
53
21
27000:27050 (For Half-Life)
28000:29000 (For Quake)
Well, yes, I got ip-forwarding with masquerading enabled and I allow the traceroute.

There are still a lot of other options I can activate/deactive, most of them I already tried, but haven't found the right configuration so far, do you think it has to do with the firewall, since everybody else can reach the router from the internet ?
 
Old 03-06-2003, 02:14 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
When you ping your router from Internet, the ping comes from your Internet interface. When you ping from your machine in local network it comes from another interface. Firewalling scripts use interface names to block/allow certain connection. It may be, that your firewall allows pings etc from external interface, but blocks them if they come from the local one.

To make sure, please post the result of
iptables -L
 
Old 03-06-2003, 02:48 PM   #5
shazam
LQ Newbie
 
Registered: Mar 2003
Location: Marl, Germany
Distribution: Suse 8.1
Posts: 7

Original Poster
Rep: Reputation: 0
O geez, that quite something there, but I hope it'll help you, I'm still trying to figure, how to set this interfaces, because it sounds plausible to me.

ACCEPT tcp -- anywhere anywhere state ESTABLISHED tc
p dpt:ftp-data flags:!SYN,RST,ACK/SYN
ACCEPT udp -- www-proxy.BO1.srv.t-online.de anywhere state NEW,
RELATED,ESTABLISHED udp spt:domain dpts:1024:65535
ACCEPT udp -- dns03.btx.dtag.de anywhere state NEW,RELATED,ES
TABLISHED udp spt:domain dpts:1024:65535
DROP udp -- anywhere anywhere udp dpt:echo
DROP udp -- anywhere anywhere udp dpt:fsp
DROP udp -- anywhere anywhere udp dpt:ssh
DROP udp -- anywhere anywhere udp dpt:http
DROP udp -- anywhere anywhere udp dpt:netbios-ns
DROP udp -- anywhere anywhere udp dpt:netbios-dgm
DROP udp -- anywhere anywhere udp dpt:netbios-ssn
DROP udp -- anywhere anywhere udp dpt:1027
DROP udp -- anywhere anywhere udp dpt:mysql
DROP udp -- anywhere anywhere udp dpt:x11
DROP udp -- anywhere anywhere udp dpt:http-alt
ACCEPT udp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED udp dpts:1024:65535
LOG tcp -- anywhere anywhere tcp flags:SYN,RST,AC
K/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp source-quench L
OG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp redirect LOG le
vel warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp echo-request LO
G level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp timestamp-reque
st LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp address-mask-re
quest LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG udp -- anywhere anywhere LOG level warning tc
p-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG all -- anywhere anywhere state INVALID LOG le
vel warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT-INVALID '
DROP all -- anywhere anywhere

Chain input_ext (1 references)
target prot opt source destination
LOG all -- 192.168.0.0/24 anywhere LOG level warning tc
p-options ip-options prefix `SuSE-FW-DROP-ANTI-SPOOF '
DROP all -- 192.168.0.0/24 anywhere
LOG icmp -- pD9E1312E.dip.t-dialin.net anywhere icmp source-q
uench LOG level warning tcp-options ip-options prefix `SuSE-FW-ACCEPT-SOURCEQUEN
CH '
ACCEPT icmp -- pD9E1312E.dip.t-dialin.net anywhere icmp source-q
uench
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp echo-reply
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp destination-unreachable
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp time-exceeded
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp parameter-problem
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp timestamp-reply
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp address-mask-reply
LOG icmp -- anywhere anywhere icmp redirect LOG le
vel warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
LOG icmp -- anywhere anywhere icmp source-quench L
OG level warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
LOG icmp -- anywhere anywhere icmp timestamp-reque
st LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
LOG icmp -- anywhere anywhere icmp address-mask-re
quest LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
LOG icmp -- anywhere anywhere icmp type 2 LOG leve
l warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
DROP icmp -- anywhere anywhere
ACCEPT iso-ip-- anywhere anywhere state NEW,RELATED,E
STABLISHED
LOG tcp -- anywhere anywhere tcp dpt:ftp flags:SY
N,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-ACCEPT '
ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED tcp dpt:ftp
LOG tcp -- anywhere anywhere tcp dpts:27000:27050
flags:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-
ACCEPT '
ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED tcp dpts:27000:27050
LOG tcp -- anywhere anywhere tcp dpts:27900:28000
flags:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-
ACCEPT '
ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED tcp dpts:27900:28000
LOG tcp -- anywhere anywhere tcp dpt:domain flags
:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-ACCEPT
'
ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED tcp dpt:domain
LOG tcp -- anywhere anywhere tcp dpt:http flags:S
YN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-ACCEPT '

ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED tcp dpt:http
LOG tcp -- anywhere anywhere tcp dpt:https flags:
SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-ACCEPT
'
ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED tcp dpt:https
reject_func tcp -- anywhere anywhere tcp dpt:ident flag
s:SYN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp dpt:echo flags:S
YN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP '
DROP tcp -- anywhere anywhere tcp dpt:echo flags:S
YN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp dpt:ssh flags:SY
N,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP '
DROP tcp -- anywhere anywhere tcp dpt:ssh flags:SY
N,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp dpt:http flags:S
YN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP '
DROP tcp -- anywhere anywhere tcp dpt:http flags:S
YN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp dpt:netbios-ssn
flags:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-D
ROP '
DROP tcp -- anywhere anywhere tcp dpt:netbios-ssn
flags:SYN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp dpt:mysql flags:
SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP '
DROP tcp -- anywhere anywhere tcp dpt:mysql flags:
SYN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp dpt:x11 flags:SY
N,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP '
DROP tcp -- anywhere anywhere tcp dpt:x11 flags:SY
N,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp dpt:http-alt fla
gs:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP
'
DROP tcp -- anywhere anywhere tcp dpt:http-alt fla
gs:SYN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp dpts:1024:65535
flags:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-A
CCEPT '
ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED tcp dpts:1024:65535
ACCEPT tcp -- anywhere anywhere state ESTABLISHED tc
p dpts:ipcserver:65535 flags:!SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere state ESTABLISHED tc
p dpt:ftp-data flags:!SYN,RST,ACK/SYN
ACCEPT udp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED udp dpt:http
ACCEPT udp -- www-proxy.BO1.srv.t-online.de anywhere state NEW,
RELATED,ESTABLISHED udp spt:domain dpts:1024:65535
ACCEPT udp -- dns03.btx.dtag.de anywhere state NEW,RELATED,ES
TABLISHED udp spt:domain dpts:1024:65535
DROP udp -- anywhere anywhere udp dpt:echo
DROP udp -- anywhere anywhere udp dpt:ssh
DROP udp -- anywhere anywhere udp dpt:netbios-ns
DROP udp -- anywhere anywhere udp dpt:netbios-dgm
DROP udp -- anywhere anywhere udp dpt:netbios-ssn
DROP udp -- anywhere anywhere udp dpt:1027
DROP udp -- anywhere anywhere udp dpt:mysql
DROP udp -- anywhere anywhere udp dpt:x11
DROP udp -- anywhere anywhere udp dpt:http-alt
ACCEPT udp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED udp dpts:1024:65535
ACCEPT udp -- anywhere anywhere state ESTABLISHED ud
p dpts:61000:65095
LOG tcp -- anywhere anywhere tcp flags:SYN,RST,AC
K/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp source-quench L
OG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp redirect LOG le
vel warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp echo-request LO
G level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp timestamp-reque
st LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp address-mask-re
quest LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG udp -- anywhere anywhere LOG level warning tc
p-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG all -- anywhere anywhere state INVALID LOG le
vel warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT-INVALID '
DROP all -- anywhere anywhere

Chain input_int (1 references)
target prot opt source destination
LOG all -- pD9E1312E.dip.t-dialin.net anywhere LOG level war
ning tcp-options ip-options prefix `SuSE-FW-DROP-ANTI-SPOOF '
DROP all -- pD9E1312E.dip.t-dialin.net anywhere
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp echo-request
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp echo-reply
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp destination-unreachable
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp time-exceeded
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp parameter-problem
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp timestamp-reply
ACCEPT icmp -- anywhere anywhere state RELATED,ESTABL
ISHED icmp address-mask-reply
LOG icmp -- anywhere anywhere icmp redirect LOG le
vel warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
LOG icmp -- anywhere anywhere icmp source-quench L
OG level warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
LOG icmp -- anywhere anywhere icmp timestamp-reque
st LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
LOG icmp -- anywhere anywhere icmp address-mask-re
quest LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
LOG icmp -- anywhere anywhere icmp type 2 LOG leve
l warning tcp-options ip-options prefix `SuSE-FW-DROP-ICMP-CRIT '
DROP icmp -- anywhere anywhere
reject_func tcp -- anywhere anywhere tcp dpt:ident flag
s:SYN,RST,ACK/SYN
LOG tcp -- anywhere anywhere tcp dpts:1024:65535
flags:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-A
CCEPT '
ACCEPT tcp -- anywhere anywhere state NEW,RELATED,ES
TABLISHED tcp dpts:1024:65535
ACCEPT tcp -- anywhere anywhere state ESTABLISHED tc
p dpts:ipcserver:65535 flags:!SYN,RST,ACK/SYN
ACCEPT tcp -- anywhere anywhere state ESTABLISHED tc
p dpt:ftp-data flags:!SYN,RST,ACK/SYN
ACCEPT udp -- www-proxy.BO1.srv.t-online.de anywhere state NEW,
RELATED,ESTABLISHED udp spt:domain dpts:1024:65535
ACCEPT udp -- dns03.btx.dtag.de anywhere state NEW,RELATED,ESTABLISHED udp spt:domain dpts:1024:65535
ACCEPT udp -- anywhere anywhere state NEW,RELATED,ESTABLISHED udp dpts:1024:65535
LOG tcp -- anywhere anywhere tcp flags:SYN,RST,ACK/SYN LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp source-quench LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp redirect LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp echo-request LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp timestamp-request LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG icmp -- anywhere anywhere icmp address-mask-request LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG udp -- anywhere anywhere LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT '
LOG all -- anywhere anywhere state INVALID LOG level warning tcp-options ip-options prefix `SuSE-FW-DROP-DEFAULT-INVALID '
DROP all -- anywhere anywhere

Chain reject_func (3 references)
target prot opt source destination
REJECT tcp -- anywhere anywhere reject-with tcp-reset
REJECT udp -- anywhere anywhere reject-with icmp-port-unreachable
REJECT all -- anywhere anywhere reject-with icmp-proto-unreachable
 
Old 03-06-2003, 03:27 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It looks like it may be whet I suspect. Unfortunately iptables -l doesn't print the whole commands. Could you find the script? It may be: /etc/rc.d/rc.firewall, /etc/rc.d/init.d/firewall.

Last edited by Mara; 03-06-2003 at 03:38 PM.
 
Old 03-06-2003, 03:41 PM   #7
shazam
LQ Newbie
 
Registered: Mar 2003
Location: Marl, Germany
Distribution: Suse 8.1
Posts: 7

Original Poster
Rep: Reputation: 0
Well, for /etc/rc.d I just get a link to /etc/init.d/
However in there, I find 3 different Firewall scripts (!?!).
SuSEfirewall2_init
SuSEfirewall2_setup
SuSEfirewall2_final

If I open those, it points to another script (SuSEfirewall2, obviously) located in /sbin. The three files above just look like some start handlers, because they have some sort of start|restart|stop options in it, but I don't understand the file in /sbin anymore ...
 
Old 03-06-2003, 03:56 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
The script should look like the one in this thread: http://www.linuxquestions.org/questi...ptables+script , but it should be much longer.
 
Old 03-09-2003, 01:17 PM   #9
shazam
LQ Newbie
 
Registered: Mar 2003
Location: Marl, Germany
Distribution: Suse 8.1
Posts: 7

Original Poster
Rep: Reputation: 0
I still tried all those commands, but it doesn't work.

I don't understand a lot of the thread, or the mentioned tutorial. All I understand is that iptables helps you to control all sorts of connections, going in, out and through your computer.

Shouldn't it be some simple iptables command that would do it?
 
Old 03-10-2003, 12:18 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do what? A firewalling script usually has many lines. Yours will be REALLY long.
 
Old 03-10-2003, 03:55 PM   #11
shazam
LQ Newbie
 
Registered: Mar 2003
Location: Marl, Germany
Distribution: Suse 8.1
Posts: 7

Original Poster
Rep: Reputation: 0
Well, I was hoping, since I have just a "small" problem, and most of my firewall is already working, it could be fixed. Oh well, I guess I gotta go through it, and trying to figure out how it works ...
 
Old 03-11-2003, 12:15 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You need to find the file. Then it's simple.
 
Old 03-14-2003, 09:44 AM   #13
shazam
LQ Newbie
 
Registered: Mar 2003
Location: Marl, Germany
Distribution: Suse 8.1
Posts: 7

Original Poster
Rep: Reputation: 0
I can't really tell you why, but it works, and of course, is insecure ...
Since I got two ethernet cards in my router, I used one card for the LAN connection, the other one to make an I-Net connection pppoe. Now, I read somewhere, it would be more secure, to put this second card into another net, so instead of 192.168.0, I used 192.168.2. Because I want to go onto a lan-party today, I changed the ip of the second ethernet card to 192.168.0.3, so I could run 2 game servers on the same machine on different cards for a lower ping. I just tested, if I would still get into the internet with this setup, and yes, it worked, so I tried to ping the router under its i-net ip, and that worked, too.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dns server problem nmarmol Linux - Networking 6 09-09-2005 01:48 AM
DNS server problem???? dsschanze Linux - Networking 4 04-13-2005 07:51 AM
DNS Server problem¡¡¡ mabs Linux - Networking 2 03-03-2004 07:29 AM
dns server problem talkinggoat Linux - Networking 6 11-18-2003 06:00 AM
DNS Server problem notorious_guy Linux - Networking 1 08-04-2003 09:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration