ביקשתי מקודם, בהודעה הראשונה,
פרטים על המערכת, בתגובה רשמת "לינוקס",
זה לא רציני, ולכן גם קיבלת תשובה לא רצינית.
עכשיו כך רבע שעה, ותרשום הכל על כל מה שאתה רוצה לעשות.
איזה מערכת בדיוק יש לך, איזה הפצה? Centos, gentoo, slackware מה?
איזה גירסת קרנל? אולי אתה בכלל משתמש במשהו ענתיקה עם ipchains?
אי אפשר לנחש את זה, כל מערכת שמה את הקבצי הגדרות של הfirewall במקום אחר.
על איזה פורטים מדובר?
מהאתר של CS:
ציטוט:
TCP 7002 out
TCP 5273 out
UDP 27010 out
UDP 27012 in and out
UDP 27015 in (if your server runs on this port)
|
ציטוט:
So let's get it clear with an example. We have a little LAN, connected with a linux-router to the internet. The router is called jwm, it's LAN-IP is 192.168.1.1, the WAN-IP 195.158.153.161. The box which run's the server is called heike, the IP is 192.168.1.4. And there is another client called lukas, IP 192.168.1.3.
At the router NAT (masquarading and routing) is enabled and ipchains is configured this way:
/usr/sbin/ipmasqadm autofw -A -v -r udp 27015 27015 -h 192.168.1.4
/sbin/ipchains -A output -p udp -s $ANY 27012 -j ACCEPT
/sbin/ipchains -A output -p udp -s $ANY 27010 -j ACCEPT
/sbin/ipchains -A input -p udp -s $ANY 27015 -j ACCEPT
/sbin/ipchains -A output -p tcp -s $ANY 7002 -j ACCEPT
/sbin/ipchains -A output -p tcp -s $ANY 5273 -j ACCEPT
|
TCP זה פרוטוקול, וגם UDP.
Transmission Control Protocol
User Datagram Protocol
בגדול, בTCP, כל עניין ההתחברות והשליחת חבילות מטופל ע"י המערכת הפעלה.
בUDP אתה צריך לטפל בזה בתוכנה שלך, גם קוראים לפרוטקול state-less, כי אין לו מצב,
לא קיים מושג כזה "חיבור" כמו בTCP, אבל זה לא ממש קשור לעניניינו.
למה בכלל החלטת שיש לך firewall אם אין לך מושג בהגדרות? firewall לא צץ סתם משום מקום.