Hello,
stf a écrit :
>
> I have the following configuration:
>
> (1) A router (R), that has 2 physical network interfaces: eth0 and eth1.
> eth0 is connected to my ISP and receives IPv4 address via DHCP, eth1 is
> a local network interface with static IPv4 address.
>
> This router is a normal PC computer with GNU/Linux on it (Fedora).
>
> (2) Rest of my local network (N) (only 1 computer currently).
>
> I noticed, that if I connect from within the network (N) to the router
> (R) using its public IPv4 address (the one received from ISP on eth0)
> then the following happens on router (R):
>
> (a) the packets are seen as if coming on interface eth0; I think so,
No, they're not.
> because POP3 service is then unreachable, while when using Router's eth1
> static IPv4 address everything works fine; so I think they must be
> firewalled out.
This does not mean that packets are "seen as if coming on interface
eth0". It could be just that the POP3 service only listens on the static
LAN address, or the firewall drops incoming traffic for the WAN address
received on the LAN interface, or drops outgoing traffic on the LAN
interface with the WAN source address, etc. etc. It all depends on the
ruleset.
> (b) tcpdump detects the packets on physical interface eth1, NOT eth0.
Of course it does.
> So, it seems that packets coming on physical eth1 are "on the way"
> assigned to "logical eth0"
No.
> and then get firewalled.
Maybe.
> (Q1) Where can I find more information about this distinction between
> physical and logical network interfaces in GNU/Linux?
There are not such "logical vs. physical interfaces". There are just
network interfaces.
> (Q3) Is it possible for an attacker to send IPv4 packets to Router's
> eth0, spoofing IPv4 source address so that it looks like coming from the
> local network (N), and this way make those packets assigned to logical
> eth1
There is no such "logical eth1".
> and get through?
Yes, but proper kernel settings (rp_filter) or source address checking
in iptables rules should prevent it.
|