• 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
ip forwarding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ip forwarding


  • Subject: ip forwarding
  • From: "email@hidden" <email@hidden>
  • Date: Sat, 14 Nov 2015 17:22:52 +0100 (CET)
  • Importance: Medium
  • X_v_e_cd: 4cce8f6912133d766fabca5ecf456e24
  • X_v_r_cd: 7c6059c2ef6f72b300c0e9f8700690b9

Hi Thomas,
 
The modifying the hosts file is indeed not a solution, tested that in my first approach :)
 
I believe it's simply not possible what I am trying to do.
 
Thanks for all who responded 
 
/J
 
 
 
 
-----------------------------------------------------------------------------------------------------------
 
Hello,

I don't know how to do this, but you can edit your hosts file (usually at /private/etc/hosts) to point *names* at appropriate IP addresses, e.g. to make
afp://foobar
connect to
afp://20.20.20.20
Would this be of any use?
As far as I know the hosts file will not allow you to redirect IP addresses.

Best regards
Thomas



Am 13.11.2015 um 19:03 schrieb  email@hidden :

Hi Jim,

I just want to reach out to a certain IP address.... but automatically be redirected to an other IP address.

So for example .... if I do "Command k" (connect to server) and enter  afp://10.10.10.10 ... I want to be connected to  afp://20.20.20.20


many thanks for any help,
/J

Op 13 november 2015 om 18:14 schreef Jim Weisbin < email@hidden>:

"  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: applescripting sub mailboxes in Mail
  • Next by Date: Re: Store Script Problem
  • Previous by thread: IP forwarding
  • Next by thread: Store Script Problem
  • Index(es):
    • Date
    • Thread