Route only some traffic trough VPN

Is it possible to route only certain traffic through VPN and other through default gw route?
I have tried to google it, i didn't find anything usefull.
Thank you

Replace 'eth1' with 'ppp0' or 'tun0' or whatever your VPN interface is:
http://bbs.archlinux.org/viewtopic.php? … 63#p497763
Then for the ports you want to send via the VPN, add a rule like this:
iptables -t mangle -A OUTPUT -p tcp --dport XX -m state --state NEW -j MARK --set-mark 102
Last edited by fukawi2 (2009-09-21 23:09:11)

Similar Messages

  • SonicWall SourceNAT VPN setup as default route for all traffic!

    Hi,OK hope someone can help with this mess.....Our customer has been taken over by a US company who have said all outgoing internet traffic must go via their data centre. They want us to create an IPSEC vpn from our SonicWALL TZ215 to them then route all traffic locally via this VPN.In principle this didn't sound too bad. Then there were some more options:Our local subnet 172.x.x.x has to be NAT'd to a single /32 address. 192.x.x.131They also require our destination network to be set as 0.0.0.0. as they wont specify the range at the datacenter.I have managed to get the VPN up but using the the NAT address as my local subnet and using the option on the SonicWALL "Use this VPN Tunnel as default route for all Internet traffic" on the remote network. Phase 1 and Phase 2 work ok. The problem i now have is i need to route all LAN traffic...
    This topic first appeared in the Spiceworks Community

    Hi Norbert,
    I am sorry to say that configuring routes in Azure Virtual network is not supported. I recommend you to submit your reuqirement on Azure Feedback and hope it would be released soon:
    http://feedback.azure.com/forums/217313-networking-dns-traffic-manager-vpn-vnet
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How can i configure my iphone to only pass traffic from certain apps over vpn

    I have got a telephony app that connects to a phone system through vpn. when I turn on "send all traffic through vpn" internet and other apps are really slow. is their a way to configure the phone to send only traffic from the app through VPN.

    Now all my new apps as well as several others are gone from the iPhone.
    Look on other screens. The 4.1 update ands Game Center to the home screen. If that screen was full it create a blank screen and moves one app from the home screen to the new screen to make room for Game Center. All the other screens are pushed back one place.
    How can I get my apps back? It cost me a lot of time and money to discover those apps and get them onto the phone. Are they just gone now?
    If they are really gone, you can download them again. You will not be charged again if you use the same iTunes account.

  • Kindly Is the Linksys E4200 Dual Band Router compatible with DHCP and VPN ?

    Kindly 
    Is the Linksys E4200 Dual Band Router compatible with DHCP and VPN?
    Thanks,

    Linksys/Cisco E4200 are compatible with DHCP. Second, these Wireless-N routers are only capable of enabling the VPN traffic to pass through the device.  You will need a VPN router and software to create the actual network to connect with your VPN client.

  • How can i use an existing vpn connection without using the option "Send all traffic over vpn connection"?

    I have been trying to get my computer (os x.7) to astablish a remote desktop connection to my work computer via a vpn tunnel. In fact I have just discovered that it works fine if i select to "send all traffic over vpn connection" from the options in the advanced setup of the vpn.
    If the option is selected microsofts "Remote desktop connection for mac" works just fine. However without selecting the option it is not taking advantage of the tunnel but tries to connect as if the tunnel would not exist.
    Now the question is how do I get program to use the vpn tunnel without checking the above option?
    Thanks for any hints and pointers.

    Then can her computer be authorized to both accounts?
    Absolutely. You can authorize any given computer to up to five iTunes Store accounts.
    If purchases are made on her account, to a computer authorized to my account, can I put those songs on my iPod?
    If you connect your iPod to her computer, yes. Tracks download only to the computer from which they're purchased, regardless of which iTunes Store account is used for the purchase. Or you could copy the tracks from her computer to yours and then authorize your computer to her iTunes Store account. But that's sort of defeating the original purpose, it would seem to me.
    is it better to buy music through Amazon downloads and/or actually purchasing CDs to avoid the security features iTunes puts on its music?
    That's certainly an option. If it's an entire album I want, I buy CDs. That way I can import them at the quality I want and to whichever of my systems I want. Amazon or one of the other download stores that offer tracks as MP3 are also an option, though for me download stores are best when you just want a couple of tracks off a given CD.

  • How to enable traffic between VPN clients in Windows Server 2012 R2?

    Hello, 
    I installed Remote Access role with VPN.
    IPv4 Router is enabled: http://snag.gy/UAMY2.jpg
    VPN clients should use static ip pool: http://snag.gy/REjkB.jpg
    One VPN user is configured to have static ip: http://snag.gy/TWwq0.jpg
    VPN server uses Windows Authentication and Windows Accounting.
    With this setup, VPN clients can connect to server, get ip addresses and can see server via server's vpn ip. Server can connect to VPN clients too (Using client's vpn ips). But VPN clients can't communicate with each other.
    For example, VPN server has ip 192.168.99.5
    VPN Client 1 - 192.168.99.6
    VPN Client 2 - 192.168.99.7
    I am able to ping 192.168.99.5 from both clients, and able to ping 192.168.99.6 and 192.168.99.7 from server via remote desktop. But I am not able to ping 192.168.99.7 from client 1 and 192.168.99.6 from client 2.
    If I trace route from 192.168.99.6 to 192.168.99.7 - I can see that packets goes to server (192.168.99.5) and next hop - request timeout.
    What else should I configure to allow network traffic between VPN clients?

    Hi,
    To better analyze this issue, would you please post the routing tables on the two VPN clients? You can run "route print" at the command prompt to get the routing table.
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • I backed up everything to icloud, wiped my phone, synced to that backup, and only some of my photos are there. How do I get those photos back?

    I backed up everything to icloud, wiped my phone, synced to that backup, and only some of my photos are there. How do I get those photos back?
    I went to apple store and they walked me through this except for the syncing part. I went to sync everything at home and a lot of my photos aren't there. When I scroll all the way down, its just a loading spiral thing.
    Also, now I have new stuff, that I don't want to get deleted.
    Is there some way to put my icloud pictures on my computer as well?

    If the restore process is done, or seems to have stalled, and it didnt' restore your camera roll photos, all you can do is try restoring the backup again.  If it's still restoring, go to Settings>iCloud>Storage & Backup and tap Stop Restoring at the bottom.  Then go to Settings>General>Reset, tap Erase All Content and Settings, go through the setup screens again and when given the option, choose Restore from iCloud backup and follow the prompts.
    Be sure your phone is connected to wifi and your charger while it is restoring the backup.  You might want to move it closer to your wifi router for the strongest signal possible.

  • Can I use The Airport Express as a router only. Need your help

    Hi there,
    I need to get some help from anyone for a good wireless router for a MacBook Pro. I want to know if anyone had a Airport Express as a router only of some help in this matter.
    Hope to get your feedback. Thanks
    From Samantha Kellar

    Can you explain a bit more?
    The Apple Express is a router. The new Apple Express has a LAN port so you can have a device on a wired connection.
    Are you talking about removing the modem and only having the Airport Express?

  • Change Km's to miles & why do I only have traffic ...

    Just purchased the Nokia 5800 last week.  Did I purchase the U.S. phone or the INTERNATIONAL phone? I ask because I'm having some issues with Nokia maps. Distances are measured in km and this phone seems to only have traffic updates for European countries. Can anyone help.

    There are are certain functions that can only be executed during the "WhilePrintingRecords" pass of the report execution. Any formula that uses one of these functions cannot be summarized.
    Also any formula that is is based on aggregated values cannot be summarized.
    HTH,
    Jason

  • After upgrading to IOS 5 on my iPad only some books in iBooks show content. They were fine before the upgrade. I made a new version in Pages and reinstalled them on the iPad. Still nothing. What is the fix?

    After upgrading to IOS 5 on my iPad only some books in iBooks show content. They were fine before the upgrade. I made a new version of the book in Pages and reinstalled them on the iPad. Still nothing. What is the fix?

    I just got the iBooks update and that fixed the problem, except the book covers look like they were done in a government printing office.

  • How can I display all my e-mails.  Only some of them show up now...thanks to an apple representative in the apple store

    How can I display all my e-mails on all my Apple products?  Only some of them show up now...thanks to an apple representative in the apple store.  Also, he put my oldest emails in POP (???)

    How can I display all my e-mails on all my Apple products?  Only some of them show up now...thanks to an apple representative in the apple store.  Also, he put my oldest emails in POP (???)

  • Old computer has died- how can I get all my stuff from my ipod into new computer- so far only some of songs have appeared ?

    old computer has died
    how can i get all my songs etc from ipod onto new machine
    so far only some tracks have appeared
    thanks
    daniel266

    daniel266 wrote:
    how can i get all my songs etc from ipod onto new machine
    check out this post by Zevoneer.

  • Birthday calendar for only some of my contacts are showing up twice in my iPhone. They are not showing up twice tho on my iMac. No, I do not have duplicate names in my address book either. Any idea how to fix that?

    my birthday events for only some of my contacts are showing up twice in my iPhone. They are not showing up twice tho on my iMac. No, I do not have duplicate names in my address book either. Any idea how to fix that?

    I have uploaded the InDesign file so that you can take a closer look at:
    http://www.hsdesign.comuf.com/downloads/
    The file is called "Template_File.indd"
    So, as discussed the main issues are:
    1) The TOC doesn't generate all the listings (only those with the applied paragraph style "Heading 1 - Appendix")
    2) When I try to create a new pargraph style and apply it to existing or new text, it reads the pargraph style in the Paragraph Style menu, but the style doesn't actually apply.
    Hopefully you can figure something out from this. I really appreciate your help.
    Thanks!

  • HT201077 I am a new iphone 5 user and set it up to use icloud to store pictures, etc. I set up my home computer afterwards, but only some pictures are on the icloud. How do I view the rest of my pictures on my  home computer? Where are they stored?

    Only some of my pictures are on iCloud that are currently stored on my phone. Where are the others? Why aren't all the pictures from my iPhone showing in the iCloud? I can't find the pictures I saved from my ipodtouch, either....

    Only some of my pictures are on iCloud that are currently stored on my phone. Where are the others? Why aren't all the pictures from my iPhone showing in the iCloud? I can't find the pictures I saved from my ipodtouch, either....

  • Only some of my photo's are syncing from iPhoto to my iPad, iPhone and Apple TV.

    Only some of my photo's are syncing from iPhoto to my iPad, iPhone and Apple TV.
    It may be my own fault due to learning Aperture and playing around with the locations of the Master Files.
    The thing I don't understand is that when in iPhoto all thumbnails of all photo's are able to be enlarged / edited etc. When a thumbnail is clicked on there is no gray triangle with an exclamation mark indicating that the link to the original photo can't be found. I would have thought this was ok for syncing to take place.
    When trying to sync through iTunes to my iPad for example (after some photo's have been synced) a window comes up saying "Some of your photos, including the photo “_MG_3820.jpg”, were not copied to the iPad “Mark Harlen’s iPad” because they cannot be displayed on your iPad".
    I thought this may be due to lack of memory space but my Apple TV (which has the same issue but not the same warning window) has over over 100 free GB's so that can't be it.
    When I did a test and re imported one photo that wasn't being synced to my other devices, that photo consequently was then synced so maybe it has something to do with the path through iPhoto to the original files.
    Is there any way I can re establish these links with out having to create an entire new iPhoto library from the originals (I have a lot of albums and have done a lot of editing etc and don't and want to have to do it all again).
    I look forward to you help and advice
    Mark

    Thanks for the advice but it didn't seem to work
    I've decided to try ditching iPhoto and orgainising, syncing my photo's to all devices from Aperture
    I have so far imported over 1200 photo's (relocating and renaming the master files as well) and find that when syncing through iTunes only 209 photo's are listed. The Projects/Albums are there but some indicate that there are 0 photo's in them when I know other wise (at least according to whats happing in Aperture)
    I'm starting to suspect it may be a computer problem
    Any thoughts?
    Regards
    Mark
    PS: Just after posting this I restarted my computer, went into iTunes and my Apple TV started to sync. It was now syncing 854 photo's not 209 as before.

Maybe you are looking for

  • Macbook Pro CPU Core's temperature measurments

    I have a late 2011 15-inch Macbook Pro OS X 10.8.4 with BootCamp installed. In OS X environment, the CPU core temperatures are around 40 - 44C, while in idle or with a minimum Safari browsing the net. When in Bootcamp with Windows 7 Professional, in

  • Windows 7 and Windows Xp Joint Network...

    Dear Members.......i want to ask 2 very common question i tried a lot to find a solution on internet, but couldn't so i am here. Our Network Details. we have a small company with 15 computers all of these computers, when we bought they had installed

  • PLEASE HELP! ABOUT PRECAUTIONS TO BE TAKEN TO BUY ...

    Friends, Recently i bought 2nd hand N70.when i check the imei via *#06# the phone only shows seriel no of the set which is different from the imei no on box. but the number in sticker on inner panel ( battery place) and on the box imei no denotes sam

  • Unable to resolve the exception  READ_REPORT_LINE_TOO_LONG in Abap program.

    Hi,   I am getting the exception READ_REPORT_LINE_TOO_LONG in my abap program.Given below is the full analysis of the exception and then the program code :- Error Analysis :-   An exception occurred that is explained in detail below. The exception, w

  • Ideapad S12 Quickstart problem

    Hi there, for a few weeks now i'm always asked to language and country like a first time user. And it never automatically connects to my Wifi. How can I change this? thanks, Erik Solved! Go to Solution.