Jump to content

Recommended Posts

Posted

Есть проблема с натом, тунель поднимаю так:

ifconfig gre0 inet MY_IP_EAM22 192.168.1.1 netmask 255.255.255.0

route add 84.246.64.86 192.168.100.1

route add default -iface gre0

 

ifconfig gre0 tunnel 192.168.100.5 84.246.64.86

 

natd -a MY_IP_EAM22 -dynamic -o 8668 -i 8669

ipfw add 00500 divert 8669 ip from any to MY_IP_EAM22 via rl1

 

 

 

делаю

# ping 192.168.1.1

PING 192.168.1.1 (192.168.1.1): 56 data bytes

^C

--- 192.168.1.1 ping statistics ---

6 packets transmitted, 0 packets received, 100% packet loss

 

В ответ

 

19:32:25.850808 192.168.1.1 > MY_IP_EAM22: icmp: echo reply

19:32:26.863168 192.168.1.1 > MY_IP_EAM22: icmp: echo reply

19:32:27.874676 192.168.1.1 > MY_IP_EAM22: icmp: echo reply

 

 

# ps ax | grep nat

172 ?? Ss 0:00.01 natd -a MY_IP_EAM22 -dynamic -o 8668 -i 8669

 

# ipfw show | grep divert

00500 36 2682 divert 8668 ip from any to any via gre0

00500 0 0 divert 8669 ip from any to MY_IP_EAM22 via rl1

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 и с Политикой конфиденциальности.