Problem setting up alias ip address
site_archiver@lists.apple.com Delivered-To: macnetworkprog@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=ORfqdEn//dZaDheq6Eud7gSlGRWIgzpGbu7HPvtA+uI=; b=HJy5xhMAxEzoqisYawfFLdZpAS99cVlsP+3mx3JMIdOttw9UBYXDzmifOuWQkZIAb6 WQcFQC9oE0EuFA+COiMldip2WZpKxAfY8QaFxP2BpmqCPf9DtKr5pZySoI2xoE9Odjhi xIhnYU4bXiaFJcrraQhRU4pyYmLOeP+T6L21M= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=NsmUu2xfCDBZXL6G2JF8ucznlPkpqXC1ll2KE4aoTUicWiiCig0V3G8mz1s0JBpN0h Eeb+99yA3jL8tmq2yUPl9xQ7Qiu+omqKslmHP5WSnb2l6HADLiFPJhO6OLFWAN7xJ2a+ Y8QeijNsybkQFiSQJMMV8XGVZcQTCdeKu6t2c= Hi, Having problems sending data over an ifconfig alias address. To create the alias address i am using: $ ifconfig ppp0 alias <extra ip local address> <remote gateway addr> netmask 255.255.255.0 Where ppp0 is already up, (and set by the VPN server as a dynamic IP address). But our aim is to assign locally a static IP address. So that can be bind()'d to. I would otherwise modify the client app to use SO_BINDTODEVICE. However there is no such feature on Mac OS X. So, moving on. This ipconfig alias address seems to almost work (or partially). Because outgoing packets sent to the new alias address ".111" will all appear on the ppp0 interface. But rather than going from the alias address -> destination address, the packet appears there to be going from the local ppp0 assign "real address" (192.168.0.26) -> (192.168.0.111). So they go nowhere. janitors-Mac-mini:peers id$ nmap 192.168.2.1 # ppp0 remote address janitors-Mac-mini:peers id$ sudo tcpdump -i ppp0 tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on ppp0, link-type PPP (PPP), capture size 65535 bytes 14:31:55.350430 IP 192.168.0.26.59258 > 192.168.0.111.http: Flags [S], seq 1400391633, win 65535, options [mss 1404,nop,wscale 3,nop,nop,TS val 95271349 ecr 0,sackOK,eol], length 0 14:31:55.350576 IP 192.168.0.26.59259 > 192.168.0.111.https: Flags [S], seq 3103647381, win 65535, options [mss 1404,nop,wscale 3,nop,nop,TS val 95271349 ecr 0,sackOK,eol], length 0 Perhaps some packet-rewriting rule is also needed? Any help would be great, thanks. dreamcat4 dreamcat4@gmail.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Macnetworkprog mailing list (Macnetworkprog@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/macnetworkprog/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Dreamcat Four