[ burtonium @ 29.10.2003. 13:20 ] @
pozdrav,

posto sam hteo da postavim sebi dns server, ja sam odlucio staviti tinydns. I posto koristim i dnscache konfigurisao sam na drugu karticu eth1 192.168.1.1 jos drugu adresu eth1:1 192.168.1.2 za istu karticu. Otvorio sam na iptables port 53 udp i tcp protokol.

Problem je u tome, da kada radim nmap eth1 192.168.1.1, lepo se vidi da mi je 53 otvoren.

Code:

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on  (192.168.1.1):
(The 1595 ports scanned but not shown below are in state: closed)
Port       State       Service
53/tcp     open        domain
111/tcp    open        sunrpc
139/tcp    open        netbios-ssn
443/tcp    open        https
2111/tcp   open        kx
3306/tcp   open        mysql

Nmap run completed -- 1 IP address (1 host up) scanned in 3 seconds



A kada napravim nmap eth1:1 192.168.1.2 (isti interface ko onaj gornji), port 53 nije otvoren i nemam pojma zasto?

Code:

Starting nmap V. 3.00 ( www.insecure.org/nmap/ )
Interesting ports on  (192.168.1.2):
(The 1597 ports scanned but not shown below are in state: closed)
Port       State       Service
111/tcp    open        sunrpc
443/tcp    open        https
2111/tcp   open        kx
3306/tcp   open        mysql

Nmap run completed -- 1 IP address (1 host up) scanned in 3 seconds



Ako neko zna neka pomogne ....



[ burtonium @ 29.10.2003. 13:22 ] @
Mozda jos da dam iptables rules i ifconfig izpis.

Code:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABLISHED
DROP       tcp  -- !192.168.1.0          anywhere           tcp flags:!SYN,RST,ACK/SYN state NEW
ACCEPT     tcp  --  anywhere             anywhere           tcp spt:ftp state ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere           tcp spts:1024:65535 dpts:1024:65535 state ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:2202
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:webcache
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:2202
ACCEPT     udp  --  anywhere             anywhere           udp dpt:domain
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:domain

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere           state NEW,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ftp state NEW,ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere           tcp dpt:ftp-data state ESTABLISHED
ACCEPT     tcp  --  anywhere             anywhere           tcp spts:1024:65535 dpts:1024:65535 state RELATED,ESTABLISHED



i ifconfig

Code:

eth0      Link encap:Ethernet  HWaddr 00:30:4F:16:65:50
          inet addr:213.161.21.80  Bcast:213.161.21.127  Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11496710 errors:0 dropped:0 overruns:0 frame:0
          TX packets:115403 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:781164678 (744.9 Mb)  TX bytes:59102714 (56.3 Mb)
          Interrupt:11 Base address:0xc000

eth1      Link encap:Ethernet  HWaddr 00:E0:7D:C0:CF:C1
          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:147805 errors:0 dropped:0 overruns:0 frame:0
          TX packets:165184 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:67348378 (64.2 Mb)  TX bytes:114858089 (109.5 Mb)
          Interrupt:10 Base address:0xe000

eth1:1    Link encap:Ethernet  HWaddr 00:E0:7D:C0:CF:C1
          inet addr:192.168.1.2  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:10 Base address:0xe000

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:18014 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18014 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:783058 (764.7 Kb)  TX bytes:783058 (764.7 Kb)