Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement the pass through #172

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

jerryyummy
Copy link

implement passthrough so when you try to access a specific port, it will not set a handler for this port, and it just pass traffic to the target server not glutton

@jerryyummy
Copy link
Author

@glaslos could you please have a check?

@@ -37,6 +38,10 @@ type Rule struct {
matcher *pcap.BPF
}

func (r *Rule) GetRuleType() RuleType {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the attribute public instead of implementing a getter

@@ -29,6 +29,8 @@ rules:
- match: tcp dst port 11211
type: conn_handler
target: memcache
- match: tcp dst port 5000
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have you tested this for other ports?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a problem, i have to set glutton run a specific port and implement pass through on the same port so that it works. so, i just wonder if gluuton could run a different port with pass through, i tested this situation but it shows connection refused. Also, when i test pass through within glutton running on the same port, it will accept request, but do not response, i don't if it is because i do not run any program on that port.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants