• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AppleScript-Users Digest, Vol 12, Issue 551
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript-Users Digest, Vol 12, Issue 551


  • Subject: Re: AppleScript-Users Digest, Vol 12, Issue 551
  • From: Jim Weisbin <email@hidden>
  • Date: Fri, 13 Nov 2015 12:14:25 -0500
  • X_v_e_cd: 880d35c61acf954898153a7b0aa5544a
  • X_v_r_cd: f072530305ef362af2ad7fee146a533f

 "email@hidden" <email@hidden> wrote:

--- changed en1 to en0

$ sudo sysctl -w net.inet.ip.forwarding=1

$ sudo natd -interface en0

--- changed "any to any" by the IP addresses? Is that correct?

$ sudo ipfw add divert natd ip from 10.100.4.100 to 10.110.4.100 via en0

Anyway commands seems to be accepted but it doesn't work.

Am I missing something?


The default interface may not be en0 or en1. To get the default interface:

set my_interface to do shell script "netstat -rn -f inet | egrep \"^default\" | awk '{print $6}’ "

However, not really sure what you are trying to do. If you want the client machine to accessible at a different IP address, you can set it up with virtual IP’s:

https://gerrydevstory.com/2012/08/20/how-to-create-virtual-network-interface-on-mac-os-x/


Jim Weisbin | C.T.O. | human 


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: distinctUnionOfArrays
  • Next by Date: Re: Load Script Problem
  • Previous by thread: Re: Store Script Problem
  • Next by thread: excel save as csv
  • Index(es):
    • Date
    • Thread