Linked Questions

0 votes
1 answer
560 views

What is the simplest way to route web traffic via separate (dedicated) interface? [duplicate]

Possible Duplicate: iptables - Target to route packet to specific interface? Ubuntu 12.04. So on the client's machines I've got two NICs eth1 and wlan0. I'd like all the web browsing traffic to ...
tkane's user avatar
  • 141
36 votes
4 answers
229k views

list all route tables

I need to know how to list the IDs of all route tables. For example, I can run: ip rule add fwmark 2 table 104 ip route add dev eth0 default via 192.168.3.7 table 104 A call to ip rule list shows: ...
nic's user avatar
  • 990
10 votes
4 answers
31k views

Setting up a proxy server that uses a vpn connection

My thoughts are like this: I have this external vpn service that I am connecting to. But Is it possible for me to set up a local proxy server that uses that vpn connection, so applications that ...
Stojg's user avatar
  • 218
8 votes
5 answers
11k views

Route IP Traffic Based on Process to Different Default Routes / Interfaces

I'm trying to determine if it is possible to selectively route IP packets from a process or process group through a specific interface while all other packets are routed through another interface. ...
justinzane's user avatar
2 votes
4 answers
3k views

Linux (Ubuntu) OpenVPN Client - Do not Tunnel SSH

I would like to run OpenVPN in client mode on my cloud VM (EC2 instance), so that traffic that exits the VM in general goes through the VPN. But I would still like the existing IP Address to be ...
GavinR's user avatar
  • 315
4 votes
2 answers
3k views

Can I have different routing table for different users?

My Linux machine have two accounts. I want to set different default gateway for the different accounts. How can I do this, if it is possible?
kev's user avatar
  • 159
3 votes
1 answer
1k views

IPTables, route specific port through VPN

I'm running my own mail server at home on a dynamic IP. Dynamic IPs are often blacklisted, so I currently send out mails through my provider's relay. I want to change that to sending mail directly, ...
i3i5i7's user avatar
  • 81
1 vote
2 answers
1k views

Route specific destination port specific packets through VPN

I am trying to achieve something very similar to iptables - Target to route packet to specific interface? and https://unix.stackexchange.com/questions/21093/output-traffic-on-different-interfaces-...
bonanza's user avatar
  • 77
0 votes
1 answer
200 views

Linux: give away a single IP address (route a local IP address to another interface)

I have two servers linked together through a virtual link (actually a 4in6 tunnel). One is an OpenVZ VPS server which has an unused IPv4 address configured on a venet interface (cannot be bridged), ...
Mildred's user avatar
  • 825
0 votes
2 answers
100 views

I need help w/iptable rules

Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all -- anywhere anywhere The above 'ACCEPT'-line is quiet confusing to me. Doesn'...
Robert Frost's user avatar
0 votes
0 answers
42 views

Linux iptables/UFW - Exclude ONE host from nat

Currently I am using UFW to NAT two IPv4 Subnets to VPN Interfaces like this: extract of /etc/ufw/before.rules: # NAT table rules *nat :POSTROUTING ACCEPT [0:0] -A POSTROUTING -s 192.168.1.0/24 -o ...
user3528657's user avatar