That worked - do I keep the tcrule in place as well?

Vernon

------------------------
Vernon (Andy) Fort
Provident Solutions
Office   - (615) 406-5540
http://www.provident-solutions.com


-----Original Message-----
From: Tom Eastep [mailto:[email protected]] 
Sent: Tuesday, May 01, 2012 08:41 AM
To: [email protected]
Subject: Re: [Shorewall-users] Multi-ISP and smtp

On 05/01/2012 04:44 AM, Vernon Fort wrote:
> Using the following provider setup:
>
> #NAME NUMBER MARK DUPLICATE INTERFACE GATEWAY OPTIONS COPY
>
> CABLE 1 1 main eth2 detect balance eth0
>
> EARTH 2 2 main eth1 detect fallback eth0
>
> With TRACK_PROVIDERS=Yes in shorewall.conf - I need the default 
> outbound to always go out connection CABLE(1) eth2.
>
> However, I need all outbound SMTP traffic to go out the EARTH(2) eth1. 
> I have set the following in tcrules:
>
> 2 $FW 0.0.0.0/0 tcp 25
>
> I read and re-read but I'm obviously missing something.

See the section of the Multi-ISP document entitled "Applications running on the 
Firewall - making them use a particular Provider" 
(http://www.shorewall.net/MultiISP.html#Local). Applications running on the 
firewall itself don't always obey the marking rules. If you are running Postfix 
as your MTA, the appropriate setting is smtp_bind_address = <ip addr of eth2>.

Hope that helps,
-Tom
-- 
Tom Eastep        \ When I die, I want to go like my Grandfather who
Shoreline,         \ died peacefully in his sleep. Not screaming like
Washington, USA     \ all of the passengers in his car
http://shorewall.net \________________________________________________

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to