ÆÄÀ̽ã - ÆÄÀÌÅ÷

Linux Tun / Python ¿ë ·¦ÆÛ
Áö±Ý ´Ù¿î·Îµå

ÆÄÀ̽ã - ÆÄÀÌÅ÷ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • MIT/X Consortium Lic...
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • montag451
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/montag451/

ÆÄÀ̽ã - ÆÄÀÌÅ÷ ű×


ÆÄÀ̽ã - ÆÄÀÌÅ÷ ¼³¸í

PytunÀº PIP¸¦ ¼³Ä¡ÇÏ¿© TUN / TAP ÀåÄ¡¸¦ ¸Å¿ì ½±°Ô ¸¸µé°Å³ª DESTAIDENCESINSTUNSTINSTULTINSTULTINSTUL PYTHON-PITTUN (Python-Pytun)À» ¼³Ä¡ ÇϰųªÀÌ ¾ÆÄ«À̺긦 ´Ù¿î·ÎµåÇϰųª Python Setup.py ¼³Ä¡¸¦ ½ÇÇàÇÕ´Ï´Ù. pyTunÀÌ C ¸ðµâ·Î¼­ ÄÄÆÄÀÏ·¯ (¿¹ : GCC)¿Í Python DevelopPement Çì´õ°¡ ½Ã½ºÅÛ¿¡ ¼³Ä¡µÇ¾î ÀÖ°í ½Ã½ºÅÛ¿¡ ¼³Ä¡µÈ µ¥ºñ¾È À¯»ç ºÐÆ÷´Â ºôµå Çʼö ¹× Python-Dev°¡ÀÖ´Â °ÍÀ¸·Î È®Àε˴ϴÙ. ÆÄÀ̽ã Ç¥ÁØ ¶óÀ̺귯¸®°¡ ¾Æ´Ñ ´Ù¸¥ Á¾¼Ó¼ºÀÌ ¾ø½À´Ï´Ù. ´ëºÎºÐÀÇ ¹èÆ÷ÆÇ¿¡¼­ ÀÌ·¯ÇÑ examples¸¦ ½ÇÇàÇϱâ À§ÇØ ·çÆ®°¡ ÀÖ¾î¾ßÇÕ´Ï´Ù. Æ©ºê ÀåÄ¡¸¦ ¸¸µé ¶§ : Pytun °¡Á® ¿À±â¿¡¼­ tuntapdeviceTun = tuntapdevice ()¿¡¼­ tap ÀåÄ¡¸¦ ¸¸µé·Á¸é, pytun °¡Á® ¿À±â tuntapdevice, iff_taptap = tuntapdevice (flags = iff_tap) »ç¿ëÀÚ Á¤ÀÇ À̸§À¸·Î Æ©´× / ÅÇ ÀåÄ¡¸¦ ¸¸µé·Á¸é À̸§ Å°¿öµå¸¦ »ç¿ëÇϽʽÿÀ. Æ©´× = tuntapdevice (name = 'myTun') ÀåÄ¡ÀÇ ÀϺΠ¸Å°³ º¯¼ö¸¦ Á÷Á¢ °¡Á®¿Ã ¼ö ÀÖ½À´Ï´Ù : Tun Àμâ .NametUn.addr = '10 .8.0.1'tun.dstaddr = '10 .8.0.2'tun.netmask = '255.255.255.0'tun.mtu = 1500 µð¹ÙÀ̽º¿¡ Àбâ / ¾²±â, Àбâ (Å©±â) ¹× ¾²±â ¹æ¹ýÀ» »ç¿ëÇϽʽÿÀ ( buf = tun.read (tun.mtu) tun.write (buf) ÀåÄ¡·Î ¿Ï·áµÇ¸é ´ÝÀ¸½Ê½Ã¿À : tun.close () ÆÄÀÏ·¹³ë¸¦ ±â´ëÇÏ´Â ¸ðµç ÇÔ¼ö¸¦ °¡Áø tuntapdevice °´Ã¼¸¦ »ç¿ëÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ) ¹æ¹ý (¿¹ : select ()) Á¦Ç° ȨÆäÀÌÁö


ÆÄÀ̽ã - ÆÄÀÌÅ÷ °ü·Ã ¼ÒÇÁÆ®¿þ¾î

metapdf.

¸ÞŸ µ¥ÀÌÅÍ ÃßÃâ ¹× »ðÀÔÀ» À§ÇØ ÃÖÀûÈ­ µÈ °æ·® PDF ¶óÀ̺귯¸® ...

75

´Ù¿î·Îµå