LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-31-2008, 08:34 PM   #1
guillermo
LQ Newbie
 
Registered: Aug 2007
Location: Argentina
Posts: 25

Rep: Reputation: 15
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!
 
Old 07-31-2008, 11:23 PM   #2
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: Disabled
Though I haven't understood your topology, I feel it is a basic case of routing. Use (static) route here.
 
Old 08-01-2008, 11:13 AM   #3
guillermo
LQ Newbie
 
Registered: Aug 2007
Location: Argentina
Posts: 25

Original Poster
Rep: Reputation: 15
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!.
 
Old 08-04-2008, 12:17 AM   #4
pronoy
Member
 
Registered: Mar 2005
Location: india
Distribution: FC4, Debian Etch
Posts: 67

Rep: Reputation: Disabled
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
 
Old 08-04-2008, 04:20 PM   #5
guillermo
LQ Newbie
 
Registered: Aug 2007
Location: Argentina
Posts: 25

Original Poster
Rep: Reputation: 15
asdasdasdasd

Last edited by guillermo; 08-04-2008 at 04:52 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 12:09 AM
Network Traffic Stops After High Traffic windisch Linux - Networking 6 12-17-2007 05:45 PM
SNMP MRTG RRDTOOL Configu of CPU memory Disk Port data traffic doc traffic manish_2479 Linux - Networking 1 06-19-2007 07:08 AM
Intranet traffic restriction/redirection pircio Linux - Networking 2 02-17-2005 09:24 AM
Wireless traffic stomps isdn traffic on gateway machine Radix999 Linux - Wireless Networking 0 11-14-2003 12:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration