I understand this issue has been hashed again and again and again hundreds of times... but after searching the archives, I am still stumped.
Situation: I have a Sun Ultra 5 (Solaris 9) as a dialup router/firewall/server/kitchen sink/etc. at home, which maintains a dialup modem connection to my ISP. We'll say its Internet address is 64.64.64.64 (dev sppp0) at the moment. I also have an internal LAN, 192.168.0.0/24. My Sun box's IP on this LAN is 192.168.0.1 (dev hme0), and it is the default route for all internal LAN boxes (it also runs Sun's DHCP server). I have a laptop on this LAN. My laptop has RedHat Linux 9 with PPTP software installed, and that works great (when it's given a real Internet address). It is the ONLY client in my LAN which needs to do ANYTHING with PPTP or GRE. It needs to connect to the corporate VPN server (which is on a public Internet IP), we'll call it 12.12.12.12. My laptop's IP is 192.168.0.45. I understand I can set up a rdr using IPNat so GRE packets coming from 12.12.12.12 to my dialup modem can be redirected to my laptop's IP (192.168.0.45) using a rule like: rdr sppp0 0.0.0.0/0 port 0 -> 192.168.0.45 port 0 gre I am not sure if this works, because the following scenario exists when I try to make a PPTP connection: My laptop sends packets to the corporate VPN server (12.12.12.12) with protocol=47 (GRE), however Source IP=192.168.0.45, Dest IP=12.12.12.12. That's fine, except my Sun box continues to send that packet out the modem as Source=192.168.0.45, Dest=12.12.12.12 ! It does not rewrite the Source IP of the outbound GRE packet. Are there any rules I should add to enable this? Note that I determined this by use of Solaris's "snoop" program. I noticed that TCP NAT'ed packets for the port 1723 connection appeared in "snoop" as bearing the destination/source IP of the Sun box's dialup modem IP, rather than the laptop's internal IP. The IP packets bearing protocol "47" all said source IP of 192.168.0.45, so I assume that means it sent the packet out the modem as such. Also for the record, I have basic TCP/UDP NAT'ing for all boxes in my internal LAN, using the following IPNat rule: map sppp0 192.168.0.0/24 -> 0.0.0.0/32 portmap tcp/udp 20000:30000 Thank you very much!
