-

 -



[ ]

 - e-mail

 

 -

   altesack

 -

 LiveInternet.ru:
: 01.09.2008
: 874
: 3530
: 8981

:


, 01 2010 . 17:15 +
,

, , ICQ , - . . IP-, .

.



-. SMTP . , , IP, .

.

- . .

- iptables mangle :

PHP:

[root@caesar log]# cat /etc/sysconfig/iptables
# Generated by iptables-save v1.4.0 on Wed Feb 24 11:27:17 2010
*mangle
:PREROUTING ACCEPT [42490:6051887]
:
INPUT ACCEPT [42470:6044225]
:
FORWARD ACCEPT [0:0]
:
OUTPUT ACCEPT [66561:77530427]
:
POSTROUTING ACCEPT [66561:77530427]
[
0:0] -A OUTPUT -p tcp -m tcp --dport 25 -j CONNMARK --set-mark 0x2
[0:0] -A OUTPUT -m connmark --mark 0x2 -j MARK --set-mark 0x2
.............
font>




.


PHP:

[root@caesar log]#  cat /etc/iproute2/rt_tables
#
# reserved values
#
255     local
254     main
253     
default
0       unspec
.......
<
b>112     smtpalt</b>
font>




PHP:

[root@caesar log]#/sbin/ip rule add fwmark 0x2 lookup smtpalt
font>




PHP:

[root@caesar log]#/sbin/ip route add src 192.168.1.2 default dev eth0 via 192.168.1.1 table smtpalt
font>



- postfix IP

smtp_bind_address=192.168.1.2

. ?
:  

: [1] []
Vl_ad_le_na   , 01 2010 . 20:12 ()
altesack, -_-


   
altesack   , 01 2010 . 20:39 ()
, ?
   
Vl_ad_le_na   , 01 2010 . 20:45 ()
altesack, . .
, )


   
altesack   , 02 2010 . 10:26 ()
Vl_ad_le_na, - . , :)

:)
   
: [1] []
 

:
: 

: ( )

:

  URL