IP forwarding
IP forwarding
- Subject: IP forwarding
- From: "email@hidden" <email@hidden>
- Date: Fri, 13 Nov 2015 19:03:57 +0100 (CET)
- Importance: Medium
- X_v_e_cd: 97403dca5f4e2c66d870a2966869008b
- X_v_r_cd: de30ec4b89bc069afeecd69a1f0fa834
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:
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