Skip to contentSkip to conversation

alias interfaces

DISCUSSION Mario Antonio 2 participants 3 messages Oct 18, 2002 – Oct 19, 2002

lore
Share & tools
lore
#0 lore raw

Antony,

Thanks again for your kindness.

I was also doubting about routing problems, but why when I accept all the traffic in the INPUT chain, everything works find?

Linux 7.3 and iptables v1.2.7a
eth0=10.10.10.239
eth0:0=10.10.13.227
workstation accessing the server: 10.10.10.19 netmask 255.255.255.0

This is my ifconfig:
eth0 Link encap:Ethernet HWaddr 00:06:5B:8C:72:5F

          inet addr:10.10.10.239  Bcast:10.10.10.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:41195 errors:0 dropped:0 overruns:0 frame:0
          TX packets:19820 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:12109228 (11.5 Mb)  TX bytes:3289639 (3.1 Mb)
          Interrupt:16 Base address:0xa000

eth0:0 Link encap:Ethernet HWaddr 00:06:5B:8C:72:5F

          inet addr:10.10.13.227  Bcast:10.10.13.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:16 Base address:0xa000

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:11 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0
RX bytes:812 (812.0 b) TX bytes:812 (812.0 b)

This is my netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt
Iface

10.10.10.0    0.0.0.0         255.255.255.0   U        40 0          0 eth0
10.10.13.0    0.0.0.0         255.255.255.0   U        40 0          0 eth0

127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo
0.0.0.0 10.10.10.1 0.0.0.0 UG 40 0 0 eth0

My simple rules againg:

#! /bin/sh
/usr/local/sbin/iptables -F
/usr/local/sbin/iptables -P INPUT DROP
#/usr/local/sbin/iptables -A INPUT -j LOG --log-prefix "IPTABLES-IN "
/usr/local/sbin/iptables -P FORWARD ACCEPT /usr/local/sbin/iptables -P OUTPUT ACCEPT /usr/local/sbin/iptables -A INPUT -m state --state RELATED,ESTABLISHED -j
ACCEPT
/usr/local/sbin/iptables -A INPUT -s 10.10.10.19 -d 10.10.10.239 -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT /usr/local/sbin/iptables -A INPUT -i eth0 -s 10.10.10.19 -d
10.10.13.227 -p tcp -m tcp --dport 80 --tcp-flags SYN,RST,ACK SYN -j ACCEPT
/usr/local/sbin/iptables -A INPUT -j LOG --log-prefix "IPTABLES-IN "

Regards

Mario

----------------------------------------------------------------------------
----------------
Log entries do not tell you whether the packet is accepted, dropped,
rejected, or whatever. They simply record the fact that the packet was
seen
at the position in the ruleset where you have your logging rule.

It is the rule/s which come after that (or the default policy) which determines what actually happens to the packets.

What netmask do you have on your machines ?

Antony.

---
[This e-mail was scanned for viruses by Webjogger's AntiVirus Protection System]

#1 lore raw
Quoted 6 lines · Mario Antonio

Antony,

Thanks again for your kindness.

I was also doubting about routing problems, but why when I accept all the traffic in the INPUT chain, everything works fine?

I can't say, but your netmask / routing table is the problem.

Quoted 4 lines

Linux 7.3 and iptables v1.2.7a
eth0=10.10.10.239
eth0:0=10.10.13.227
workstation accessing the server: 10.10.10.19 netmask 255.255.255.0

This is a Class C netmask. All machines on the local network must have
10.10.10 as the first three bytes of the address. You are trying to contact
address 10.10.13.227, which is on a different network.

Change the aliased address so that it is on the 10.10.10.0 network, or change your netmask so you have at least a Class B subnet.

Antony

Signature · 5 lines
KDE 3.0.3 contains an important fix for handling SSL certificates.  Users of 
Internet Explorer, which suffers from the same problem but which
does not yet have a fix available, are also encouraged to switch to KDE 3.0.3.

http://www.kde.org/announcements/announce-3.0.3.html
#2 lore raw

Antony,

Thanks for your feedback and patience.
Things are working nicely now.

Regards ( By the way, I enjoy your sayings in your emails)

Mario

----- Original Message -----
From: "Antony Stone" <[email protected]>
To: <[email protected]>
Sent: Saturday, October 19, 2002 4:05 AM
Subject: Re: alias interfaces

Quoted 7 lines · Mario Antonio
Quoted 6 lines

Antony,

Thanks again for your kindness.

I was also doubting about routing problems, but why when I accept all

the

Quoted 11 lines
Quoted 1 line

traffic in the INPUT chain, everything works fine?

I can't say, but your netmask / routing table is the problem.

Quoted 4 lines

Linux 7.3 and iptables v1.2.7a
eth0=10.10.10.239
eth0:0=10.10.13.227
workstation accessing the server: 10.10.10.19 netmask 255.255.255.0

This is a Class C netmask. All machines on the local network must have
10.10.10 as the first three bytes of the address. You are trying to

contact

Quoted 3 lines

address 10.10.13.227, which is on a different network.

Change the aliased address so that it is on the 10.10.10.0 network, or

change

Quoted 7 lines

your netmask so you have at least a Class B subnet.

Antony

--

KDE 3.0.3 contains an important fix for handling SSL certificates. Users

of

Quoted 2 lines

Internet Explorer, which suffers from the same problem but which does not yet have a fix available, are also encouraged to switch to KDE

3.0.3.

Quoted 5 lines

http://www.kde.org/announcements/announce-3.0.3.html

---
[This e-mail was scanned for viruses by Webjogger's AntiVirus Protection

System]

Quoted 2 lines

---
[This e-mail was scanned for viruses by Webjogger's AntiVirus Protection System]