Ö§³ÖÖÐÐÄ
USR-DR185ÁÙʱ¹Ì¼þÈçºÎÉèÖÃSNAT¹¦ÄÜ
2024-09-06


Ò»¡¢×ÊÁÏÏÂÔØ

USR-DR185˵Ã÷ÊéÏÂÔØÁ´½Ó£º/Download/1360.html

USR-DR185¹æ¸ñÊéÏÂÔØÁ´½Ó£º/Download/1374.html

¶þ¡¢Ó²¼þÁ¬½Ó

1¡¢ËùÐèÎïÆ·

USR-DR185 1̨

ÅäÌ×RJ45Åä¼þ 1¸ö

µçÄÔ 1̨

2¡¢Ó²¼þÁ¬½Ó

DR185Éϵ磬Íø¿ÚÖ±Á¬µçÄÔ¡£

Èý¡¢²úÆ·²ÎÊýÉèÖÃ

1¡¢ ´ò¿ªä¯ÀÀÆ÷ÊäÈëĬÈÏlan 192.168.1.1½øÈëÄÚÖÃÍøÒ³¡£µÇ¼ÃÜÂëΪadmin¡£

2¡¢ ÔÚ·À»ðǽ--×Ô¶¨ÒåiptablesÀïÌí¼ÓSNATÖ¸Áî¡£

ÏÂÃæÒÔDR185ÔÚDMÌí¼ÓʹÓÃDM×éÍøΪÀý£º

Ö¸ÁîΪ£ºiptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o br0 -j SNAT --to-source 192.168.1.1

iptablesÊÇ Linux ϵͳÖÐÓÃÓÚÅäÖ÷À»ðǽ¹æÔòµÄÃüÁîÐй¤¾ß£»-t nat£ºÖ¸¶¨Òª²Ù×÷µÄ±íÊÇ nat ±í£¬Õâ¸ö±íÓÃÓÚÍøÂçµØַת»»£»-A±íʾÏòÖ¸¶¨µÄÁ´Ìí¼Ó¹æÔò¡£POSTROUTING ÊÇ nat ±íÖеÄÒ»¸öÁ´£¬ÓÃÓÚ´¦Àí´Ó±¾µØÍøÂç·¢³ö¡¢¼´½«À뿪Ö÷»úµÄÊý¾Ý°ü£»-s Ñ¡ÏîÖ¸¶¨Á˹æÔòÊÊÓõÄÔ´µØÖ·¡£ÕâÀï 10.8.0.0/24 ±íʾԴµØÖ··¶Î§ÊÇ 10.8.0.0 µ½ 10.8.0.255£¬ÕâÊÇDM×éÍøÀï¸øDR185·ÖÅäµÄÐéÄâIP£»-o Ñ¡ÏîÖ¸¶¨ÁËÊý¾Ý°üµÄÊä³ö½Ó¿Ú£»br0 ÊÇÊä³ö½Ó¿ÚµÄÃû³Æ£¬±íʾËùÓдÓÕâ¸ö½Ó¿Ú·¢³öµÄÊý¾Ý°ü¶¼½«Ó¦ÓÃÕâÌõ¹æÔò£»-j Ñ¡ÏîÖ¸¶¨Á˹æÔòÆ¥ÅäºóÒªÖ´ÐеĶ¯×÷¡£SNAT¼´Source NAT±íʾ½«Ö´ÐÐÔ´µØַת»»£»--to-source 192.168.1.1£ºÖ¸¶¨ÁËҪת»»µ½µÄÄ¿±êÔ´ IP µØÖ·£¬ÕâÀï´ú±íDR185µÄlan¿ÚIP¡£ËùÓÐÆ¥Åä¹æÔòµÄÊý¾Ý°üµÄÔ´ IP µØÖ·½«±»Ì滻Ϊ 192.168.1.1¡£

Ìí¼Óºó£¬µã»÷Ó¦Óã¬È»ºóÖØÆôÉúЧ¡£

˵Ã÷£º

£¨1£©ÕâÀïµÄ·À»ðǽ¹¦ÄÜ¿É×Ô¶¨Ò壬³ý±¾ÎĵµµÄSNAT¹¦ÄÜÍ⣬ÆäËû·À»ðǽ¹¦ÄÜÒ²¿ÉÒÔÉèÖã¬ÓëliunxÖ¸ÁîÒ»Ñù£¬¿É°Ù¶ÈËÑË÷Ïà¹ØÖ¸Á

£¨2£©´Ë¹¦ÄÜÄ¿Ç°ÓÃÓÚDM×éÍø£¬ÖÕ¶ËÉ豸²»Ö§³Ö¿çÍø¶ÎʹÓûò²»Ö§³ÖÉèÖÃÍø¹Øʱ£¬ÉèÖÃSNAT¸Ä±äÊý¾ÝÀ´Ô´ºó¿ÉÒÔÕý³£Ê¹Óá£


±àдÈË£º¾Ï˼Ææ ±àдÈÕÆÚ£º2024-08-26

ÉóºËÈË£ºÒü´ÔÐÀ ÉóºËÈÕÆÚ£º2024-09-06

¶©Õý°æ±¾£ºV1.0 ¶©ÕýÄÚÈÝ£º³õ¸å



¹Ø×¢¿­·¢¡¤k8¹ú¼Ê΢ÐŹ«ÖÚºÅ
Á˽â¸ü¶àÐÅÏ¢

sitemap¡¢µØͼ