Re: Ip forwarding



Pascal Hambourg wrote:
Sambo a écrit :


Changing net/ipv4/ip_forward also affects net/ipv4/conf/*/forwarding.


little correction to this ??filter files contain 0.


Filter files ? What do you mean ?


/proc/sys/net/ipv4/conf/eth0/rpfilter
/proc/sys/net/ipv4/conf/eth1/rpfilter


I hope by "sent to it" you mean "reaching it" as opposed to "addressed to it", or is packet wrapping involved here.


I mean "addressed to it" at link layer (MAC address). Packets that are meant to be forwarded by a router must be sent to its MAC address on the link. This MAC address is obtained by doing an ARP query to the router's local IP address, which is the gateway address in the routing table.

Oh , sorry, that makes sense.



Why 192.168.0.9 ? According to your diagram, comp2's eth1 address is 192.168.0.8.


Yes, interchanged the 8 and 9 the first time.

The interface column contains the output interface for a given destination. The gateway column optionnally contains the address of the next hop router if the destination is not directly reachable on the network attached to the output interface. The gateway address must be directly reachable on the network attached to the output interface.

"*" or 0.0.0.0 as the gateway means that the destination is directly reachable on the network attached to the output interface. In this case you can consider that the next hop address is equal to the destination address.

In both cases the packet is sent on the link to the next hop MAC address.

Yes, must be MAC addressed to somebody in the neighbourhood, carrying any INET destination address, GOT IT.
.



Relevant Pages

  • RE: Network sniffing on the wire - managed switches
    ... Switches send packets to destination ports based on the ... destination MAC address of the packet, ... MAC address is either YOUR MAC address, ... Network sniffing on the wire - managed switches ...
    (Security-Basics)
  • Re: Convention User Woas
    ... gateway, they're not able to reach off the LAN either, as most operating ... Where they st00pid enough to not spoof the MAC address as well? ... and might see that the local network is ... with the destination address of 216.239.57.x to the MAC address of the ...
    (comp.dcom.lans.ethernet)
  • [Tool] - Nat Probe
    ... and detect all the host that allow it. ... When we use a Gateway, we send the packets with IP dest of the target, ... but the dest mac on the ethernet is the mac at the Gateway. ... If we send a packet to the diferents macs in the lan, ...
    (Pen-Test)
  • RE: TCP reset DoS with multicast MAC.
    ... Unless the packets you're capturing originated on the same subnet you're ... You cannot craft a packet with a custom source and destination Ethernet ... TCP reset DoS with multicast MAC. ...
    (Security-Basics)
  • Re: Default Gateway outside of subnet
    ... reference the same default gateway address that is located in one of the ... four subnets? ... the ARPs are sent to the all-1's MAC broadcast ... when the packet returns to an IP that the ...
    (comp.dcom.sys.cisco)