ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] iptables for pptp via eth0
@ 2005-12-30  7:48 Maxim Mogilevsky
  2005-12-30 20:25 ` ABATAPA
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Mogilevsky @ 2005-12-30  7:48 UTC (permalink / raw)
  To: ALT Linux Community

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]

ALM2.4

Подскажите какие изменения надо сделать в правилах для того, чтобы
поднимался pptp, без iptables поднимается. В инструкции на pptp нашел
правила для iptables, не все понял, но там ссылки на протокол gre в
/etc/service такого не нашел.

Спасибо Максим

[-- Attachment #2: iptables.home --]
[-- Type: application/octet-stream, Size: 4518 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] iptables for pptp via eth0
  2005-12-30  7:48 [Comm] iptables for pptp via eth0 Maxim Mogilevsky
@ 2005-12-30 20:25 ` ABATAPA
  2006-01-01 20:42   ` Olaf Portvineson
  0 siblings, 1 reply; 3+ messages in thread
From: ABATAPA @ 2005-12-30 20:25 UTC (permalink / raw)
  To: ALT Linux Community

Пятница 30 Декабрь 2005 10:48, Maxim Mogilevsky написал:
> ALM2.4
>
> Подскажите какие изменения надо сделать в правилах для того, чтобы
> поднимался pptp, без iptables поднимается. В инструкции на pptp нашел
> правила для iptables, не все понял, но там ссылки на протокол gre в
> /etc/service такого не нашел.
/etc/service описывает порты, используемые различными службами.
GRE  же - протокол, Generic Route Encapsulation/ Xbnfqnt j, 'njv/

Правило примерно таковы (условно):
iptables -A FORWARD -s 192.168.0.0/255.255.255.0 -d 172.16.0.1 -p gre -j 
ACCEPT
iptables -A FORWARD -s 192.168.0.1 -d 192.168.0.0/255.255.255.0 -p gre -j 
ACCEPT
iptables -A FORWARD -s 192.168.0.0/255.255.255.0 -d 192.168.0.1 -p tcp -m tcp 
--dport 1723 -j ACCEPT
iptables -A FORWARD -s 192.168.0.1 -d 192.168.0.0/255.255.255.0 -p tcp -m tcp 
--sport 1723 -j
  ACCEPT


Порт 1723 нужен для установления control connection для pptp. Ну, а '-p gre' - 
указывает на протокол.
-- 
ABATAPA


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Comm] iptables for pptp via eth0
  2005-12-30 20:25 ` ABATAPA
@ 2006-01-01 20:42   ` Olaf Portvineson
  0 siblings, 0 replies; 3+ messages in thread
From: Olaf Portvineson @ 2006-01-01 20:42 UTC (permalink / raw)
  To: ALT Linux Community

> Порт 1723 нужен для установления control connection для pptp. Ну, а '-p gre' -
> указывает на протокол.
Насколько я понимаю, можно '-р 47', впрочем это непринципиально.
--
CyberSkunk aka dRuNk Ph!ZiK

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-01 20:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-30  7:48 [Comm] iptables for pptp via eth0 Maxim Mogilevsky
2005-12-30 20:25 ` ABATAPA
2006-01-01 20:42   ` Olaf Portvineson

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git