Author: Not specified Language: bash
Description: Not specified Timestamp: 2018-06-13 00:59:30 +0000
View raw paste Reply
  1. #!/bin/sh
  2. /sbin/kldload ipfw_nat
  3.  
  4. /sbin/ipfw nat 2010 config ip 216.66.24.34 \
  5.         redirect_port udp 10.254.254.151:161 163 \
  6.         redirect_port udp 10.254.254.95:161 164 \
  7.         redirect_port udp 10.254.254.96:161 165 \
  8.         redirect_port udp 10.254.254.97:161 166 \
  9.         redirect_port udp 10.254.254.98:161 167 \
  10.         redirect_port udp 10.254.254.99:161 168
  11. /sbin/ipfw add 2001 allow ip from 192.168.0.0/16 to 216.66.24.32/27
  12. /sbin/ipfw add 2002 allow ip from 192.168.0.0/16 to 216.66.43.96/27
  13. /sbin/ipfw add 2009 allow ip from 192.168.0.0/16 to 192.168.0.0/16
  14. /sbin/ipfw add 2011 nat 2010 ip from 192.168.0.0/16 to any via ix0.43
  15. /sbin/ipfw add 2012 nat 2010 ip from any to 216.66.24.34
  16.  
View raw paste Reply