traffic redirection issue
Hello!
I need redirect incoming traffic, it's coming via a local address, to a virtual interface eth0:1 because i need this interface for a vpn . Which is the best way to do it ? I was thinking about iptables, but i guess could be made using static route maybe.. Well any tip or suggestion will be very thankfully Hope be cleard Regards! |
Though I haven't understood your topology, I feel it is a basic case of routing. Use (static) route here.
|
Hello pronoy, thanks for your reply
i used a static route to redirect the traffic on the lan host to the host allowed in a vpn server. but now i dont know over what ip is the traffic lefting the server. i did a iptable rule on the vpn client, like this; Chain FORWARD (policy ACCEPT) target prot opt source destination tcp -- 192.168.0.11 xxx.xxx.xxx.xxx <- server eth0:1 ip but looking the tcpdump on the vpn client allowed, i cant see if the traffic is outgoing via the eth0:1 instead i see something like this 13:06:11.621804 IP 192.168.0.11 > ipvpnserver: icmp 64: echo request seq 127 13:06:12.622034 IP 192.168.0.11 > ipvpnserver: icmp 64: echo request seq 128 13:06:13.623060 IP 192.168.0.11 > ipvpnserver: icmp 64: echo request seq 129 13:06:14.624144 IP 192.168.0.11 > ipvpnserver: icmp 64: echo request seq 130 13:06:15.624938 IP 192.168.0.11 > ipvpnserver: icmp 64: echo request seq 131 13:06:16.625754 IP 192.168.0.11 > ipvpnserver: icmp 64: echo request seq 132 Maybe sounds a bit confused, and my english is not very good, but if you need futher information to looking for a solution, feel free to post it. Regards and thanks again!. |
guillermo,
Sorry, I could not get the topology as par your configuration ! It will help to understand, if you provide information like: 1. Draw a ascii diagram of your network mentioning the vpn server, client and other hosts (with some ip address). 2. What kind of vpn client/server you are using ? 3. Why you need iptables ? Thanks, pronoy |
asdasdasdasd
|
All times are GMT -5. The time now is 01:29 AM. |