Jump to content

Recommended Posts

Posted

Здраствуйте!

Возможно данная тема уже обсуждалось не однократно, но всётаки.

Я никак не могу понять как сделать proxy-arp на FreeBSD без использования всякого рода user-lang программ на подобии choparp. Если у кого то есть ссылка на документацию, дайте пожалуйста.

 

Спасибо.

Posted

man 4 arp:

     Proxy ARP is a feature whereby the local host will respond to requests  

    for addresses other than itself, with its own address.  Normally, proxy 

    ARP in FreeBSD is set up on a host-by-host basis using the arp(8) util- 

    ity, by adding an entry for each host inside a given subnet for which   

    proxying of ARP requests is desired.  However, the ``proxy all'' feature

    causes the local host to act as a proxy for all hosts reachable through 

    some other network interface, different from the one the request came in

    from.  It may be enabled by setting the sysctl(8) MIB variable          

    net.link.ether.inet.proxyall to 1.                                      

 

man 8 arp:

-s hostname ether_addr                                                   

       Create an ARP entry for the host called hostname with the Ether- 

       net address ether_addr.  The Ethernet address is given as six hex

       bytes separated by colons.  The entry will be permanent unless   

       the word temp is given in the command.  If the word pub is given,

       the entry will be ``published''; i.e., this system will act as an

       ARP server, responding to requests for hostname even though the  

       host address is not its own.  In this case the ether_addr can be 

       given as auto in which case the interfaces on this host will be  

       examined, and if one of them is found to occupy the same subnet, 

       its Ethernet address will be used.  If the only keyword is also  

       specified, this will create a ``published (proxy only)'' entry.  

       This type of entry is created automatically if arp detects that a

       routing table entry for hostname already exists.

Чем не устраивает?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.