CentOS is an Enterprise-class Linux Distribution derived from sources freely provided to the public by a prominent North American Enterprise Linux vendor. CentOS conforms fully with the upstream vendors redistribution policy and aims to be 100% binary compatible. CentOS is developed by a small but growing team of core developers. In turn the core developers are supported by an active user community including system administrators, network administrators, enterprise users, managers, core Linux contributors and Linux enthusiasts from around the world.
Moderator: Moderators
by Rexxi » Sat Aug 21, 2010 10:36 pm
saya ingin memasukan
- Code: Select all
#!/bin/sh
#
### Flush all rules ###
/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t mangle -F
### Erase all non-default chains ###
/sbin/iptables -X
/sbin/iptables -t nat -X
/sbin/iptables -t mangle -X
### DOTA ###
/sbin/iptables -t nat -A POSTROUTING -p all -s 192.168.1.0/24 -j MASQUERADE
/sbin/iptables -t nat -A PREROUTING -p tcp -d 111.221.50.161 --dport 6112 -j DNAT --to 192.168.1.1:6112
/sbin/iptables -t nat -A PREROUTING -p tcp -d 111.221.50.161 --dport 6113 -j DNAT --to 192.168.1.2:6113
/sbin/iptables -t nat -A PREROUTING -p tcp -d 111.221.50.161 --dport 6114 -j DNAT --to 192.168.1.3:6114
/sbin/iptables -t nat -A PREROUTING -p tcp -d 111.221.50.161 --dport 6115 -j DNAT --to 192.168.1.4:6115
/sbin/iptables -t nat -A PREROUTING -p tcp -d 111.221.50.161 --dport 6116 -j DNAT --to 192.168.1.5:6116
bagaimana caramemasukannya? di folder mana.....
maaf baru mau belajar tentang ip tables
mohon pencerahan nya para tetua

-
Rexxi
- New Member

-
- Posts: 1
- Joined: Sat Aug 21, 2010 10:25 pm
by pendekar » Tue Aug 24, 2010 9:06 pm
cb chek di /etc/iptables.save nya bro
-
pendekar
- New Member

-
- Posts: 10
- Joined: Sun May 27, 2007 9:08 am
-
by ari_stress » Mon Aug 30, 2010 11:59 am
Wah rexi pasti mau copy paste dari suatu tutorial yah

Kalo mau manual bisa masukin ke /etc/rc.local command2 iptablesnya. Yang baris paling atas ga usah.
-
ari_stress
- New Member

-
- Posts: 4
- Joined: Sun Jul 08, 2007 11:34 am
- Location: Planet Linux
-
by kecoakhitam » Tue Aug 31, 2010 9:16 am
Nice info gan
-
kecoakhitam
- New Member

-
- Posts: 8
- Joined: Thu Mar 12, 2009 2:55 pm
by edianto » Tue Aug 31, 2010 9:22 am
brow..
gw mau tanya
cara munculin menu statr dan tang lain2 itu di mandriva 2008 gmn ya?
kmren terhaapus..
maklum, baru coba linux
heheheh
-
edianto
- New Member

-
- Posts: 1
- Joined: Thu Nov 06, 2008 4:46 pm
Return to CentOS Linux Support
Who is online
Users browsing this forum: Exabot [Bot] and 1 guest