Asterisk peering between public to local

Dear ,

i have customized asterisk on dedicated server and client asterisk on local network
i want to peers these Asterisk machines, one is based on public ip and 2nd is on local network

i want peer local pc via mac address .

please guide me on this /