Taking care of your Linux box.
-
LinuxFreaK
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
-
Contact:
Post
by LinuxFreaK »
Dear janali,
Salam,
janali wrote:[root@abc ~]# iptables -nvL
Chain INPUT (policy ACCEPT 20 packets, 2549 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 26 packets, 15545 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 18 packets, 5946 bytes)
pkts bytes target prot opt in out source destination
# iptables -t nat -nvL
Best Regards.
Farrukh Ahmed
-
janali
- Naik
- Posts: 58
- Joined: Tue Jul 17, 2007 1:34 pm
Post
by janali »
[root@abc]# iptables -t nat -nvL
Chain PREROUTING (policy ACCEPT 1083K packets, 53M bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 1714K packets, 103M bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 1714K packets, 103M bytes)
pkts bytes target prot opt in out source destination
-
LinuxFreaK
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
-
Contact:
Post
by LinuxFreaK »
Dear janali,
Salam,
janali wrote:[root@abc]# iptables -t nat -nvL
Chain PREROUTING (policy ACCEPT 1083K packets, 53M bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 1714K packets, 103M bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 1714K packets, 103M bytes)
pkts bytes target prot opt in out source destination
/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Best Regards.
Farrukh Ahmed