Quantcast
Channel: Security Vulnerability
Viewing all articles
Browse latest Browse all 317

Set destination MAC Address on Socket

$
0
0

Hello friends,

I am trying to reliably create a point to point connection between two computers which may not have a 1 to 1 public IP.

In order to do this, I need to set the destination MAC address and destination port number. 

For example, if there is an IP 192.168.0.2  and another IP 192.168.0.3 , and if a connection is made on the same local port eg 10,000, after NAT through a firewall, the source IP Address in a many to 1 system will need to be DNATed using some other information.

In bound packets to both 192.168.0.2 and 192.168.0.3  prior to DNAT will show the firewall's IP - eg 99.99.99.99.

However, reviewing the Etherreal output of the packet - the MAC address is specific to the adapter - so the router or firewall must be using the MAC Address to correctly route the inbound packets and DNAT to the local IP.

So the question is : is the firewall using the destination MAC address to DNAT and route ?


Viewing all articles
Browse latest Browse all 317

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>