Changeset 116 for system/generators/iptables.php
- Timestamp:
- Nov 28, 2008, 9:22:41 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
system/generators/iptables.php
r112 r116 60 60 if($Row['external_ip'] != '') 61 61 { 62 echo($Row['name'].'='.$Row['external_ip']."\n"); 63 62 64 exec('/sbin/iptables -t nat -A PreroutingDNAT -i eth1 -d '.$Row['external_ip'].' -j DNAT --to-destination '.$Row['IP']); 63 65 exec('/sbin/iptables -t nat -A PreroutingDNAT -i eth1 -d '.$Row['external_ip'].' -j ACCEPT');
Note:
See TracChangeset
for help on using the changeset viewer.