Specify ports/host to route over VPN client connection

Discussion in 'DD-WRT Firmware' started by g18c, Jun 26, 2007.

  1. g18c

    g18c LI Guru Member

    Hi, i wish for my DD-WRT router to connect to my remote PPTP server. I can see the settings in for the pptp client. This should be fine.

    However, I would like only SOME ports (or even packets from a specific ip) to be routed over this pptp interface. All other ports should be routed through the default route. Is this possible? What commands would i need to enter?

    Finally, how would this work with Skype? I dont think it would work properly as the hole punching method of getting through the firewall wont work as we are traversing two NATs (once through the pptp client on the router, and once on my remote pptp server whn it goes out onto the net)? Any ideas on this?

  2. g18c

    g18c LI Guru Member

    i saw this on google groups, i belive this is called policy routing? I am trying to go through the examples now, but how would i integrate ip table commands into DD-WRT? How would i make the changes persistant via reboots, and would i have to manually edit scripts and if so what ones would be of interest? Another way i have read and this is probably the better way, is that the answer lies in the 'ip route' command to set multiple routing tables based on the source packet attributes. Can anyone give me any further guidance with this with use in DD-WRT?

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice