Внимание! В связи с борьбой со спамерами были удалены все аккаунты, не имеющие в своём активе сообщений.
Так же восстановлена работа уведомлений на почту.

СерверПроблемы с элементарным шлюзом

Обсуждаем всё, что так или иначе связано с работой системы в качестве сервера (базы данных, почтовые и веб-сервера, файловые серверы и т.д.)
Сообщения: 1
Зарегистрирован: 25 июн 2011, 18:55

Проблемы с элементарным шлюзом

Сообщение belartvlad80 » 25 июн 2011, 18:58

Здравствуйте профессионалы, помогите пожайлуста новичку в Linux системах.

Конфигурация системы следующая. В Virtual Box есть две виртуальные машины
одну я хотел использовать в качестве шлюза Centos 2.6.18 - 8.1.6.e15 с двумя сетевыми интерфейсами eth0(внешний) и eth1(внутренний). Вторая машинка рабочая станция WinXPSP3 c одним внутренним сетевым интерфейсом.
Сетевые параметры:
На Centos файл /etc/sysconfig/network-scripts/ifcfg-eth0:


файл /etc/sysconfig/network-scripts/ifcfg-eth1:


На XP сетевые настройки TCP/IP:
Маска подсети
Основной шлюз

На Centos:

В файле /etc/sysctl.conf выставляю следующий параметр в 1

net.ipv4.ip_forward = 1

ввожу следующие команды:

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
service iptables save
service iptables restart

в /etc/sysconfig/network


Перезапускаю сетевую подсистему

service network restart

И тут мне выдаётся

Shutting down interface eth0: [ OK ]
Shutting down interface eth1: [ OK ]
Shutting down loopback interface: [ OK ]
Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0
[ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Bringing up interface eth1: [ OK ]

В четвёртой строчке мне выдаётся что форвардинг не работает и тот параметр который я на первом шаге ставил в 1 обнуляется для системы и делает невозможным работу шлюза. Хотя после этого всего

cat /proc/sys/net/ipv4/ip_forward выдаёт 1
Мистика какая-то !!!

Проверяю маршрутизацию netstat -r выдаёт следующее

Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface * U 0 0 0 eth0 * U 0 0 0 eth1 * U 0 0 0 eth1
default pc001 UG 0 0 0 eth0

Тоже странно внутрення сеть без явного шлюза хотя вроде как прописал

Вообщем помогите разобраться. Заранее спасибо !!!

Сообщения: 7
Зарегистрирован: 28 июн 2011, 20:09

Re: Проблемы с элементарным шлюзом

Сообщение fullmetal » 24 июл 2011, 17:00

iptables -A FORWARD -i eth1 -j ACCEPT
iptables -A FORWARD -o eth1 -j ACCEPT

перед iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE



Сообщения: 4
Зарегистрирован: 10 сен 2011, 00:33

Re: Проблемы с элементарным шлюзом

Сообщение piran157 » 10 сен 2011, 00:48

всё правильно тебе пишет, ты же делаешь stop & start: сначала Disabling IPv4 packet forwarding: net.ipv4.ip_forward = 0;
потом включает тебе мистику.
У меня та же проблема, внутренний комп не видит внешнюю сеть, только внешний ип gateway'a. Т.е. в твоём случае видит, а уже нет. Внутренний ип ( и внешний ( пингвинятся, дальше тишина...
Не знаю как у тебя, а у меня DNS серверами даже не пахнет, ибо провайдер СЗТ.
Тоже жду помощи... Желательно в картинках - люблю комиксы!

Сообщения: 4
Зарегистрирован: 10 сен 2011, 00:33

Re: Проблемы с элементарным шлюзом

Сообщение piran157 » 10 сен 2011, 00:59

если во внешней сети есть DNS, то достаточно включить форвардинг, прописать этот ДНС; у внутреннего ип указать адрес и маску( 24), у внешнего указать адрес, маску и шлюз( 24, и никакие танцы вокруг iptables не нужны!... Маскарад и SNAT нужны, если шлюз шлюза запрет даёт на другие сети.
и кстати SELINUX лучше disable

прошу поправить меня, если что- то не правильно понимаю - самоучка.

Сообщения: 31
Зарегистрирован: 07 мар 2018, 08:51

Re: Проблемы с элементарным шлюзом

Сообщение Businesswork » 07 мар 2018, 09:12

After completely adrenaline, there may be plenty in relation to restaurants as well as cafes of choice different meal selection in addition to practice food from specific rooms. Tickets to be certain you Terra Mitica can be acquired through each of the park's in person own website or possibly in numerous shops spread from the Costa Blanca, intended for travel companies, local tourists office, gadgets. viptravelnews
In each of the zone centered on Greece you possibly can easlily delight in attractions similar to the Minotaur's Labyrinth, simply just where readers control mythical creatures having internet markers, Titánide, almost any inverted coaster, 1sttravellink
Theoretically, a connect is put on within some from originally enquiry. So you could give us a call on an amazing Monday morning and gives the benefit your bank account through end with the working workweek. from time to time around 24 periods. In apply it typically takes far more lengthy than which can but 10 – 14 days is in particular do useful. 1stfinancehut
This is often idea within a business that can raise profit quickly say to meet some considerable order, but has determined that you'll see income within much very less time of effort allowing the loan to be paid spine .. It may be the case of the fact that business removes a extended term mortgage or possibly facility by means of their bank created to have less expensive interest, and cannot anticipate your banker position it around. vipfinancepalace
The financial institutions isn't ones you recognize at provide but many soon could well be. Using linking finance is getting more necessary stream including investors, developers and affiliate marketers use it to raise buy or possibly develop area or inject make the most their small business. efinancetown
Presumptively, shoppers could potentially abandon the vast majority of carts intentionally desiring a low cost email that you simply follow right. All this question Gouldin as well as her co-workers ask is often: Do we would like to be coach customer experiencing this regime or not very likely. shoppingjoint
There can be quite little service here tracking markdowns for deceased from carts. The nearest thing thing is very an on the net gallery which can Listrak intended of 20 ideal campaigns, but from the time that offers transform frequently it may not be likely reliable just by consumers. eshoppingboss
It's advocated to employ a building people absolutely appreciate, since spent a whole lot time at this time there. That really should make believed happier by and large. Therefore, improving your very own property with techniques that allow you to be will happy is not merely financially pointed, but both equally emotionally pointed. radionewsjournal

Among the list of chief conditions employees currently have about corporation travel insurance plans are the fact that expense coverage system is definitely cryptic plus hard to send in. You can offer the workforce a standardised form that every traveler while in the company must send in to have reimbursed to get expenses on a trip. travel hide out
Along easy general areas, your corporation travel policies will incorporate some make use of for employees who sadly are faced by using exceptional cases. Room plus food expenses will differ widely subject to where a employee will have to travel. front travel advice
There's a few way whereby travel makes a contribution to building self-belief. The most apparent is you should step outdoor your normal regular routines plus familiar places and the great to travel in the least. hit travel blog
Travel expands your body and mind and causes you to keen on the community outside you, which thus makes that you' more helpful person. How could using this method not make your self-belief? urban travel diary
Do you actually remember at the first try when you actually travelled anywhere you want new without having to be with your dad and mom? Can you actually remember a feelings that were elicited around you? And don't you recall how you would felt while you came home and you simply had a great deal of to talk about and convey to everyone pertaining to? 1st travel now
You do not have time for them to worry of what to express and ways to say them; you have a great deal of new "stuff" taking place , in your thoughts that them just pours outside naturally; dialog flows of course. You feel because you are aware of you will have a lot with interesting things say. we travel story
you'll find a tool that will assist both enterprise and workforce interests plus enable business go to be what that it was always meant to be – your productive, business on target activity this achieves a goals of your enterprise. vip travel news
So you actually don’t prefer to set a hotel minimize to $125 a night because the device is reasonable in which to stay a relaxed hotel for this rate around Lincoln Nebraska nonetheless enforce this same limitation to have employee who have to do business in New york city. 1st travel link
With utility finance schemes adjust business investments are fundable. Businesses is able to use specific investments they have as collateral about the business backing. As you will imagine upon assets businesses need to provide to get collateral relies on business funding they can be seeking in the asset funding scheme 1st finance hut
So have you considered the apr charged for monies higher via utility finance programmes? And have you considered if the work fails so that you can honour it has the monthly repayment demands? First however, this method of business backing scheme does have slightly higher home interest rates than other strategies for borrowing investment. vip finance palace
In england businesses might access utility finance expert services with lots of financing companies country wide. You may perhaps be surprised to check on there presently exists many business enterprise assets which will utilised to obtain business backing. These involve commercial devices, machinery and many other things. e finance town
While quite a few retailers, for instance Apple and also Anthropologie, were offering these high-touch retail price experiences frequent, more providers are enrolling in in when retail being successful stories develop into polarized regarding the very powerful, commodity-driven enterprises (assume dollar suppliers) as well as inspirational, experiential suppliers, shopping joint
Restoration Appliance is shelling out massively so that you can convert milestone buildings within spectacular "full-line style and design galleries, " for example the 58, 000-square-foot old Three Artistry Club with Chicago during 1300 D. Dearborn Street., where RH blueprints to amenable in originate of 2015. e shopping boss
Only following that, the investments really should be made. Consequently, latest business enterprise news is definitely of superb importance. Another part that is definitely very essential trading news India is a sensex. It is affecting the China economy to the great amount. Thus, you can find an plan of details in sensex. radio news journal

This is the myth this employees who seem to travel for business resent the organization travel scheme. The the truth is that employees wish to know what the heck is expected analysts and ways to comply which includes a corporate policy provided that scheme is fair and provides them enable you to do what you have to do on the streets. www.travelhideout.com
If remember that it is given back build a corporation travel scheme, your mission with the stand point of your company will be to develop an insurance quote that standardizes business enterprise expenses, eliminates waste material and excess on the streets and leaves some equipment around that organ of the business charge picture. www.fronttraveladvice.com
The business enterprise can start using a travel representative that wants the most effective deal for any company. The most effective rates is often identified and cheated but exclusively while by ensuring the business enterprise traveler’s needs as well as business objective of your trip will be satisfied. www.hittravelblog.com
This is the bit with effort plus expense to begin corporate a credit card that you may require a person's traveling employees to implement. But by way of trapping expenses to your corporate akun, you may get a record on the many of the business expenses the fact that employee is definitely incurring. www.urbantraveldiary.com
When you've got your corporation travel harmonized by an internal or alternative travel business, corporate accounts together with the major airlines is often established therefore, the frequent flyer miles is often collected by business. So ,, the business enterprise can receive those distance and fully grasp those benefits for a significant discount in order to apply against a travel spending plan. www.1sttravelnow.com
Your corporation travel scheme must relate clearly to your traveling workforce what its limits will be for hotel room, rental motor vehicle and meals on the streets. You prefer to head out of before them starts every tendency by employee to move overboard by using daily fees. www.wetravelstory.com
Geneva Urban center in Switzerland is amongst the world's leading hub with international diplomacy. Home to your headquarters with several famous International Institutions, Geneva is key city. Boasting for many exciting attractions, www.viptravelnews.com
The Europe Alps stands to the height with over five, 000m that create some extraordinary peaks on the earth. The wintry glaciers, snow capped peaks are several of the attractions of high highs. Travel so that you can Switzerland for you to witness a number high mountain / hill peaks for instance Matterhorn. www.1sttravellink.com

Вернуться в «Сервер»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 2 гостя