iptable prob

General discussion about Linux, Linux distribution, using Linux etc.

iptable prob

Postby brave heart » Fri Apr 10, 2009 8:39 pm

salaam
mairay system per 2 network cards hain eth0 or eth1 eth0 maira dsl modem ka hai or eth1 per lan hai to in ka rule kaisay define karain gay kah network traffic 1 per aay .
brave heart
brave heart
Naik
 
Posts: 94
Joined: Sat Sep 06, 2008 9:24 pm
WLM: brave_heart869@hotmail.com
Yahoo Messenger: romantic_eyes2@yahoo.com
Location: multan

Postby x2oxen » Tue Apr 14, 2009 4:03 pm

turn on natting and masquerade your traffic
Muhammad Usman
+92-321-6640501
Chemonics International
http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby brave heart » Thu Apr 16, 2009 2:05 pm

sir yahi to pochna tha kah kaisay masqurade karna hai .
brave heart
brave heart
Naik
 
Posts: 94
Joined: Sat Sep 06, 2008 9:24 pm
WLM: brave_heart869@hotmail.com
Yahoo Messenger: romantic_eyes2@yahoo.com
Location: multan

Postby x2oxen » Fri Apr 17, 2009 2:24 pm

Code: Select all

iptables -t nat -A POSTROUTING -o $WAN -j MASQUERADE
Last edited by x2oxen on Mon Apr 20, 2009 10:33 am, edited 1 time in total.
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad

Postby mudasir » Sun Apr 19, 2009 12:04 am

AOA,

Not

Code: Select all

iptables -t nat -o $WAN -j MASQUERADE


it should be

Code: Select all

iptables -t nat -A POSTROUTING -o $WAN -j MASQUERADE
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
mudasir
Captain
 
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Website: http://www.crystalnetworks.org
Location: Dubai

Postby x2oxen » Mon Apr 20, 2009 10:33 am

Oops my bad! I am correcting above as well!
Muhammad Usman

+92-321-6640501

Chemonics International

http://usmanpk.com
x2oxen
Major General
 
Posts: 1114
Joined: Wed Aug 22, 2007 3:17 pm
Website: http://usmanpk.com
WLM: x2oxen@hotmail.com
Yahoo Messenger: x2oxen
Location: Faisalabad


Return to “%s” General

Who is online

Users browsing this forum: No registered users and 2 guests

cron