81 port

Taking care of your Linux box.

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi

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
janali
Naik
 
Posts: 58
Joined: Tue Jul 17, 2007 1:34 pm

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
LinuxFreaK
Site Admin
 
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
ICQ: 82075802
Website: http://www.linuxpakistan.net/wiki/index.php?pagename=LinuxFreak
WLM: f4fahmed@hotmail.com
Yahoo Messenger: f4fahmed@yahoo.com
AOL: linuxpakistan@aol.com
Location: Karachi


Return to “%s” Administration

Who is online

Users browsing this forum: No registered users and 1 guest

cron