Ignore:
Timestamp:
Jan 16, 2008, 8:43:31 PM (17 years ago)
Author:
george
Message:

Upraveno: Systémové generovací skripty s ohledem na nové tarify a rychlosti.
Upraveno: Změna IP adresy routeru.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • system/generators/iptables.php

    r1 r7  
    9898DB_Select('hosts', '*', 'name="MAIL"');
    9999$Row = DB_Row();
    100 exec('iptables -t nat -A PreroutingDNAT -p tcp -m tcp --dport 25 -d 212.111.16.94 -j DROP'); 
     100exec('iptables -t nat -A PreroutingDNAT -p tcp -m tcp --dport 25 -d 212.111.4.174 -j DROP'); 
    101101exec('iptables -t nat -A PreroutingDNAT -p tcp -m tcp --dport 25 -d '.$Row['external_ip'].' -j DNAT --to-destination '.$Row['IP']); 
    102102exec('iptables -t nat -A PreroutingDNAT -p tcp -m tcp --dport 25 -d '.$Row['external_ip'].' -j ACCEPT'); 
    103 exec('iptables -t nat -A POSTROUTING -p tcp -m tcp --dport 25 -s 212.111.16.94 -o eth1 -j SNAT --to-source '.$Row['external_ip']); 
     103exec('iptables -t nat -A POSTROUTING -p tcp -m tcp --dport 25 -s 212.111.4.174 -o eth1 -j SNAT --to-source '.$Row['external_ip']); 
    104104
    105105// Local network NAT
Note: See TracChangeset for help on using the changeset viewer.