LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 10-25-2013, 03:20 PM   #1
dramcio
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Rep: Reputation: Disabled
Routing from remote ip, to remote ip on linux by iptables


Hello

I try (if it is possible), create my simple proxy, to change my ip (by remote host)

So i have "VPS" (ex. in OVH)
My ip 109.1.134.12 (ex.)
VPS IP: 111.222.222.1 (ex.)
Remote Server ip(this is server where i want to connect from my pc):158.151.13.14

So i dont want to make any tunnel (to connect to internet via this VPS and redirect ALL traffic from ALL ports)

OK let's see(normal) connection:
my_ip:32498 -> Remote Server:7171 (send , from my pc to remote server)
remote server -> my_ip:32498 (recv)
remote server:7172 -> my_ip:32499 (recv)
my_ip:32499 -> remote server:7172

For ports from my ip i want to make port range (32498,32499,this is random ports port range 30000-60000) remote server ports :7171 or 7172 is still the same.

So now, when i connect to my VPS on port 7171/7172 VPS redirect my traffic automatically to remote server, and when remote server connect to VPS , VPS Redirect all traffic to my PC.

After it i should have other ip than mine. (this APP dont support PROXY - but i can change dest ip, ex. from remote server to my VPS)

Last edited by dramcio; 10-25-2013 at 03:23 PM.
 
Old 10-26-2013, 05:55 PM   #2
dramcio
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
refresh any idea?
 
  


Reply



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
Installing a linux-distro remote desktop on an already remote debian server... errr? Sabinou Linux - Newbie 2 04-26-2012 05:29 PM
Accessing remote desktop on VM from a remote machine using iptables cram869 Linux - Networking 3 03-07-2012 03:25 PM
[SOLVED] IPTABLES routing - Remote access to PostgreSQL blocked jmedurey Linux - Networking 3 02-10-2012 12:49 PM
Anyone got the Remote Wonder (ATI's USB remote control) to work under Linux? dezireduser Linux - Hardware 2 11-06-2005 08:47 AM
using linux to redirect remote vpn traffic to another remote machine brb5548 Linux - Networking 0 06-28-2003 09:07 PM

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

All times are GMT -5. The time now is 02:23 AM.

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