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 12-15-2010, 10:26 PM   #1
tniemela
LQ Newbie
 
Registered: May 2007
Location: Finland
Distribution: Debian 6.0
Posts: 9

Rep: Reputation: 0
iptables outgoing adress using an aliased interface


Hi, itīs been several years since i played with iptables. I have setup like this:

eth0 is the only physical device on box and eth0:0 is aliased. Traffic going out of the box to internet uses eth0

eth0 116.55.58.1
eth0:0 116.55.58.2

I have a service listening on port 80 on 116.55.58.2

Lets say my client connect to 116.55.58.2:80 through 116.55.58.1 , how do I force (mangle you name it) with iptables that the outgoing source address will be always 116.55.58.2?

Thanks
 
Old 12-16-2010, 05:21 AM   #2
Reuti
Senior Member
 
Registered: Dec 2004
Location: Marburg, Germany
Distribution: openSUSE 15.2
Posts: 1,339

Rep: Reputation: 260Reputation: 260Reputation: 260
You checked, that for now the outgoing source address is 116.55.58.1 even when .2 was addressed?
 
  


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
IPtables: Route outgoing traffic from internal host to only go a internet interface predatorz Linux - Networking 4 11-24-2010 09:05 AM
unable to set ipv6 address to aliased interface adevendra Linux - Networking 0 11-04-2010 10:53 AM
iptables on aliased NIC sushantchawla2005 Linux - Server 2 05-10-2010 10:09 AM
Need iptables rule to force outgoing interface redss Linux - Networking 12 03-03-2010 01:34 AM
sendmail & Suse 8.0 & outgoing adress rewrite mule Linux - Software 2 09-01-2003 01:13 AM

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

All times are GMT -5. The time now is 03:37 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