81 port

Taking care of your Linux box.
LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Postby LinuxFreaK » Tue Nov 11, 2008 10:34 am

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

Postby janali » Wed Nov 12, 2008 2:21 pm

[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:

Re;

Postby LinuxFreaK » Wed Nov 12, 2008 11:18 pm

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


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest