@Override
	public void sendPacket(String inDestMACAddress, Packet inPacket, String inInterfaceKey) throws InvalidNetworkInterfaceNameException, CommunicationException, LowLinkException{
		if (NetworkInterfacetable.containsKey(inInterfaceKey))
		{
			EthernetNetworkInterface temp = (EthernetNetworkInterface)NetworkInterfacetable.get(inInterfaceKey);	
                        
                        if(inPacket instanceof IP_packet){
                            IP_packet IPP = (IP_packet) inPacket;
                            System.out.println("Activating Proxy when sending...");
                            //if(!NodeProtocolStack.isInternalIP(IPP.getSourceIPAddress())){
                            //System.out.println("Activating NAT when sending...");
                                if(IPP instanceof TCP_packet){
                                    ((TCP_packet) IPP).setSourceIPAddress(externalIP);
                                }
                            //}
                        }
                        
			temp.sendPacket(inPacket,inDestMACAddress);		
		}
		else
		{
			throw new InvalidNetworkInterfaceNameException("Inteface does not exist.");
		}
	}